Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

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...