Jump to content

Recommended Posts

Posted

im trying to make a script for a game called GunZ

while i manage to send keys

im unable to recieve keys to the script while inside the program.

that messes me up.

can anyone advise me or know the real command for setting a global key?

Posted (edited)

thaat wworkedd good

the problem is

the keys are constantly pressed

which makes it a bit difficult to keep up with

another thing

the online documentation is not updated

i cant fuind for texample the command "exit"

anyway

can u tell me what is the command to pause and unpause the script?

Edited by rtk217
Posted (edited)

HotKeySet('p', '_Pause')
Global $bIsPaused = 0

While 1
   If $bIsPaused Then
    ;Break!
      Sleep(100)
   Else
    ;Work!
      ToolTip(Random())
      Sleep(100)
   EndIf
WEnd


Exit
Func _Pause()
   $bIsPaused = Not $bIsPaused
EndFunc

Edited by ezzetabi
Posted

nvm i made my own special code for pause

much simpler and better for my needs.

but im still having some delay issues and key stopping with the

is_pressed

can u tell me some stuff that i can tweak?

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