noobautoit Posted May 4, 2008 Share Posted May 4, 2008 Ok i read the faq's and i'm still 100% confused... i want a simple autoit script. All i want is for autoit to press the "x" button constantly. Can someone help me out? lol Link to comment Share on other sites More sharing options...
Glyph Posted May 4, 2008 Share Posted May 4, 2008 When you press the "x" button it generally closes an application... why on earth would you need to click it more then once? lol? tolle indicium Link to comment Share on other sites More sharing options...
noobautoit Posted May 4, 2008 Author Share Posted May 4, 2008 lol its just for something i'm testing but i dont want to sit here for 8 hours pressing the "x" button over and over xD Link to comment Share on other sites More sharing options...
Valuater Posted May 4, 2008 Share Posted May 4, 2008 Merry Christmas expandcollapse popup; Press Esc to terminate script, Pause/Break to "pause" Global $Paused, $Runner, $begin, $wait = 3 ; wait = 3 seconds HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F9}", "ShowMe") ;;;; Body of program would go here ;;;; While 1 Sleep(10) If $Runner Then $dif = Int(TimerDiff($begin)/1000) If $dif >= $wait Then Send("X") $begin = TimerInit() EndIf EndIf 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() $Runner = Not $Runner $begin = TimerInit() EndFunc 8) Link to comment Share on other sites More sharing options...
noobautoit Posted May 4, 2008 Author Share Posted May 4, 2008 Cool thanks it works fine 3 more hours to go!! Link to comment Share on other sites More sharing options...
TnTProductions Posted May 5, 2008 Share Posted May 5, 2008 seriously why do you want it to press x over and over lol? "FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology" 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