Jump to content

start/stop and continue

Recommended Posts


I am new to autoit world and I just started...

I was searching for a key-pressing script, I have found it, but I need one more thing ;)

I need a function to pause/unpause the pressing...

Here is what I have, like an example:

while 1

Thanks in advance!

Edited by ilzul
Link to post
Share on other sites

There are plenty of examples in the forum. Also look for HotKeySet in the helpfile! ;)

I think you're thinking he's looking to "learn" how to do something. He took the most basic, smallest amount of time, example he could find. Then asking someone here to write it for him to be the way he wanted it.

; Declare a variable to use as a flag.
Global $bEnable = False
; Set hotkeys, esc to exit and F3 to enable/disable.
HotKeySet("{ESC}", "_Exit") ; Run _Exit function
HotKeySet("{F3}", "_EnableDisable") ; Run _EnableDisable function
While 1
 ; If enabled then send 1.
 If $bEnable Then Send("1")
; _EnableDisable Function called by hotkey
Func _EnableDisable()
 If $bEnable Then ; if $bEnable is enabled, then
  $bEnable = False ; Disable.
 Else ; else if it's disabled. 
  $bEnable = True ; Enable.
; _Exit Function called by hotkey
Func _Exit()
 ;Remove HotKeys
 Exit ; Exit

There we go... wrote it for ya. Enjoy your gaming lol

Link to post
Share on other sites

He took the most basic

well, i didn't, i have been searching for a while for this, and i found something and it worked in my script...

also i would like to learn, and yes @hannes08 there is not a learning effect anymore... but i can understand now from ZacUSNYR script too xD

btw, thank you both very much, it did helped me ;)

edit: now i have to edit my buttons, i think i can do it for myself now :)

Edited by ilzul
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...