#MaxThreadsPerHotkey 2 YOURKEYHERE:: Toggle := !Toggle loop { If not Toggle break YOUR CODE HERE } return