Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Using same key for starting and stopping a loop


  • Please log in to reply
2 replies to this topic
Noemis
  • Guests
  • Last active:
  • Joined: --
Hi I'm new to this program, and I was wouldering if you could help me set up this script:

I want to start a loop of clicks with a button of the keyboard and stop it with the same button.
ex:
PRESS:F9
STARTCLICK
PRESS F9
STOP CLICK
Here is what I've done so far:

BreakTrue=05
F9::
}
Loop { 
  if (BreakTrue=1) { 
   BreakTrue = 0
   exit
  } 
click
Sleep 500
} 

F10:: BreakTrue = 1 ;


  • Guests
  • Last active:
  • Joined: --
<!-- m -->http://www.autohotke.../FAQ.htm#repeat<!-- m -->

Noemis
  • Guests
  • Last active:
  • Joined: --
Thanks a lot! Very cool program. :) Sorry for posting about something already done. you can delete the topic.

Thanks.