Sign in to follow this  
Followers 0
rtk217

global hotkeying

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
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?

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  
Followers 0