Shinies Posted September 28, 2005 Share Posted September 28, 2005 Hey, im still learning AutiIt and im not very familiar with loops, is there a way that i can set my script to detect whenever the "I" key is pressed and then Send("b") - I need that to happen whenever i press i throughout the script. If anyone one could give me some clues as to how i could do this, thank you. Link to comment Share on other sites More sharing options...
Valuater Posted September 28, 2005 Share Posted September 28, 2005 you want to do a loop or you want to press i each time???? 8) Link to comment Share on other sites More sharing options...
Shinies Posted September 28, 2005 Author Share Posted September 28, 2005 i want to it be continuoustly checking to see if "i" is pressed (i guess thats what i meen by loop) and every time it is pressed i want it to Send("b"). is that possible? Link to comment Share on other sites More sharing options...
Valuater Posted September 28, 2005 Share Posted September 28, 2005 (edited) Yes.... bts possbble rbght now every tbme b press the b key a "b" shows bnstead and here bs the scrbpt ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused, $t HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("i", "ShowMe");This is your key (i) ;;;; Body of program would go here;;;; While 1 Sleep(10) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMe() Send("b") EndFunc Enjoy!!! 8) Edited September 28, 2005 by Valuater Link to comment Share on other sites More sharing options...
Shinies Posted September 28, 2005 Author Share Posted September 28, 2005 Thank you very much Link to comment Share on other sites More sharing options...
rtk217 Posted September 28, 2005 Share Posted September 28, 2005 can i do the same thing but the key when its pressed autoit doesnt recognize is so i have to use _ispressed script someone posted which checks directly from keyboard input. can i do that? Link to comment Share on other sites More sharing options...
Valuater Posted September 28, 2005 Share Posted September 28, 2005 what do you want to push.... and what do you want to send???? 8) Link to comment Share on other sites More sharing options...
rtk217 Posted September 28, 2005 Share Posted September 28, 2005 dont want to save i want to log keys that cant be logged say from a game client u can think about it like a keylogger 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