Jump to content
Sign in to follow this  
blazeddc

Looking for a script that constantly presses enter

Recommended Posts

nairada

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

Share this post


Link to post
Share on other sites
blazeddc

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.

Share this post


Link to post
Share on other sites
nairada

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 :)

Share this post


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
Sign in to follow this  

×