So im trying to make an autoclicker of sorts but when i press crtl j it only returns 1 enter instead of doing it every 100 milliseconds.
Here is the code:
toggle = 0
#MaxThreadsPerHotkey 2
^j::
Toggle := !Toggle
While Toggle
{
send, {Enter}
sleep 100
}
My while loop isnt working
-
- Posts: 3
- Joined: 20 Sep 2018, 19:10
Re: My while loop isnt working
Hallo,
it worked for me. Maybe you pressed "crtl j" too long?
So better with hotkey "^j Up":
it worked for me. Maybe you pressed "crtl j" too long?
So better with hotkey "^j Up":
Code: Select all
toggle = 0
#MaxThreadsPerHotkey 2
^j Up::
Toggle := !Toggle
While Toggle
{
send, {Enter}
sleep 100
}
Return
-
- Posts: 3
- Joined: 20 Sep 2018, 19:10
Re: My while loop isnt working
That still doesnt work for me. Could the problem be related to my computer? Windows 10, 64 bit, AHK version 1.1.30.00
-
- Posts: 440
- Joined: 28 Apr 2018, 21:59
Re: My while loop isnt working
you could do a check to make sure that it is only triggering once by doing this
This will only send it once, but if its triggering more than once then a problem has occurred.
Code: Select all
^j Up:: Send, t
-
- Posts: 3
- Joined: 20 Sep 2018, 19:10
Re: My while loop isnt working
Nvrm it just started working. thanks all
Who is online
Users browsing this forum: CrowexBR, doodles333, vysmaty and 244 guests