Jump to content

Looking for a script that constantly presses enter


blazeddc
 Share

Recommended Posts

Global $Paused 
HotKeySet("{END}", "TogglePause") 
HotKeySet("{HOME}", "Terminate") 

While 1 
    Sleep(100) 
WEnd 

Func TogglePause() 
    $Paused = NOT $Paused 
    While $Paused 
        sleep(100) 
        Send("{Enter}") 
    WEnd 
EndFunc 

Func Terminate() 
    Exit 0 
EndFunc

Hit End to start sending enter, home to close the program. something along those lines what you are looking for? :)

Edited by nairada
Link to comment
Share on other sites

It works outside of programs however inside of games it doesnt seem to work. D: Any idea how or is gameguard blocking such program from running.

i had a problem with then when i was writing autohotkey programs to work in-game. basically, the keys weren't being held down, and i'd have to put

SetKeyDelay 75,75

but, i've not got enough experience with autoit to make it work in-game. sorry :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...