Mitzuma Posted February 26, 2006 Share Posted February 26, 2006 hi, im very new to this scritping business, i need a script that has a keystroke and loops, ive tryed and failed many times any help would be helpful Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted February 26, 2006 Share Posted February 26, 2006 what keys would you liek to press something like while 1 send("{a}") wend would send the a key Link to comment Share on other sites More sharing options...
Valuater Posted February 26, 2006 Share Posted February 26, 2006 1Welcome to the Forums2to learn alot quickly see thishttp://www.autoitscript.com/forum/index.php?showtopic=21048#3a small script that does what you asked ( unknown what you want to send ); Press Esc to terminate script, F9 to "run/pause" Global $Paused HotKeySet("{F9}", "TogglePause") HotKeySet("{ESC}", "Terminate") ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = Not $Paused While $Paused ToolTip('Script is "Running"', 0, 0) Send("{b}") Send("{r}") Sleep(100) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit 0 EndFunc ;==>Terminate8) Link to comment Share on other sites More sharing options...
=sinister= Posted February 27, 2006 Share Posted February 27, 2006 If you want keystrokes then look up controlsend() in the helpfile and While and Wend for looping. 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