Search found 2 matches

by modernslave
09 Aug 2020, 07:19
Forum: Ask For Help
Topic: Help with toggle, toggle not working
Replies: 2
Views: 657

Re: Help with toggle, toggle not working

Yakshongas wrote:
09 Aug 2020, 06:59
You forgot to add on the top of the script #Maxthreadsperhotkey, 2
Thanks it works now. If you don't mind can you explain how it works? I just read AutoHotkey Help but I don't really understand.
by modernslave
09 Aug 2020, 06:53
Forum: Ask For Help
Topic: Help with toggle, toggle not working
Replies: 2
Views: 657

Help with toggle, toggle not working

Can someone check my code? It doesn't stop clicking when I try to toggle off.

Code: Select all

toggle := false
Numpad0::		
		toggle := !toggle
		
		While (toggle) 
		{
			Random, delay, 1000,1000
			tdelay = 5000 + delay
			Click, 642, 255
			Sleep, %tdelay%
		}
return

Go to advanced search