Shinies Posted September 28, 2005 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.
Valuater Posted September 28, 2005 Posted September 28, 2005 you want to do a loop or you want to press i each time???? 8)
Shinies Posted September 28, 2005 Author 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?
Valuater Posted September 28, 2005 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
rtk217 Posted September 28, 2005 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?
Valuater Posted September 28, 2005 Posted September 28, 2005 what do you want to push.... and what do you want to send???? 8)
rtk217 Posted September 28, 2005 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
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