rtk217 Posted June 24, 2005 Share Posted June 24, 2005 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 More sharing options...
FuryCell Posted June 24, 2005 Share Posted June 24, 2005 (edited) If HotKeySet() Does not work you could try _IsPressed().You can get it here:http://www.autoitscript.com/forum/index.ph...685entry38685 Edited June 24, 2005 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 More sharing options...
rtk217 Posted June 24, 2005 Author Share Posted June 24, 2005 (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 June 24, 2005 by rtk217 Link to comment Share on other sites More sharing options...
ezzetabi Posted June 24, 2005 Share Posted June 24, 2005 (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 June 24, 2005 by ezzetabi Link to comment Share on other sites More sharing options...
rtk217 Posted June 24, 2005 Author Share Posted June 24, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now