Pirossj4 Posted February 25, 2006 Share Posted February 25, 2006 hi, i'm new to auto it and this kind of thing but i was hoping for some help. basicly i need to make a autoIT that does the following presses enter types : *Kite* rise a seven secound delay enter types *Kite* iloveyou a seven secound delay then it repeats forever. thanks for any help ! Link to comment Share on other sites More sharing options...
Valuater Posted February 25, 2006 Share Posted February 25, 2006 ; 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("{ENTER}") Send("*Kite* rise", 1) Sleep(7000) Send("{ENTER}") Send("*Kite* I Love You", 1) Sleep(7000) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit 0 EndFunc ;==>Terminateto learn how to do stuff yourselfhttp://www.autoitscript.com/forum/index.ph...opic=21048&hl=#8) Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 I had to a few less lines but o-well HotKeySet("{ESC}","_Terminate") While 1 Send("{Enter}*Kite* rise") Sleep ( 7000 ) Send("{Enter}*Kite* iloveyou") Sleep ( 7000 ) WEnd Func _Terminate() Exit EndFunc SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted February 25, 2006 Share Posted February 25, 2006 I just keep copying the same script and putting the new While/Wend request inside i must have done this 10 times now 8) Link to comment Share on other sites More sharing options...
Pirossj4 Posted February 25, 2006 Author Share Posted February 25, 2006 awww thanks, such nice people here! Link to comment Share on other sites More sharing options...
Valuater Posted February 25, 2006 Share Posted February 25, 2006 awww thanks, such nice people here!Welcome... and Welcome to AutoIt Forums8) 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