Jump to content

global hotkeying


Recommended Posts

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?

Link to comment
Share on other sites

If HotKeySet() Does not work you could try _IsPressed().

You can get it here:

http://www.autoitscript.com/forum/index.ph...685entry38685

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

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

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

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?

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