lilandywandy 0 Posted March 15, 2005 HotKeySet("{PAUSE}", "mExit") **************** WEnd Func mExit() Exit EndFunc what should i put in the **** area so that program simulates the F1 button being holded down until i press pause? Share this post Link to post Share on other sites
CyberSlug 6 Posted March 15, 2005 Well, according to the remarks section in the Send docs you use the down option:HotKeySet("{PAUSE}", "Quit") Send("{F1 down}") While 1 sleep(10) WEnd Func Quit() Send("{F1 up}");probably a good idea to release key! Exit EndFunc Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Blue_Drache 260 Posted March 15, 2005 (edited) HotKeySet("{PAUSE}", "mExit")****************WEndFunc mExit()ExitEndFuncwhat should i put in the **** area so that program simulates the F1 button being holded down until i press pause?<{POST_SNAPBACK}>Ok, $paused = 1 HotKeySet("{PAUSE}", "mPause") HotKeySet("{ESC}", "MyExit") While 1 Sleep(10) If $paused = 0 then Send("{F1 down}") While $paused = 0 Sleep(10) WEnd Send("{F1 up}") EndIf WEnd Func mPause(ByRef $paused) If $paused = 1 then $paused = 0 If $paused = 0 then $paused = 1 EndFunc Func MyExit() Exit EndFuncTry that.Bleah, CS beat me. Oh well. Mine's a toggle function....I find those more useful. Edited March 15, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Share this post Link to post Share on other sites