Guest boon Posted May 29, 2005 Share Posted May 29, 2005 how can i edit this script so that i can pause it when i press a key...i've searched for pause functions but none of them seem to workand is there anyway to move the mouse over the pixel without clicking on it?HotKeySet("{ESC}", "Terminate")Func Terminate() Exit 0EndFuncWhile 1 $Coord = PixelSearch ( 0, 0, 500, 500, 0000000, 5) If Not @error Then MouseClick ( "Left" , $Coord[0], $Coord[1] , 1 , 0 ) EndIfWendi have tried changing the 1 in mouseclick but then it would'nt move at allthx for any help Link to comment Share on other sites More sharing options...
/dev/null Posted May 30, 2005 Share Posted May 30, 2005 (edited) how can i edit this script so that i can pause it when i press a key...what do you mean by "pause the script"? Shall it do nothing, while paused?If so, see code. Press PAUSE to toggle execution of the script.HotKeySet("{ESC}", "Terminate") HotKeySet("{PAUSE}", "Idleme") Global $idle = 1 Func Terminate() Exit 0 EndFunc Func Idleme() $idle = -$idle EndFunc While 1 if $idle = 1 then sleep(500) else $Coord = PixelSearch ( 0, 0, 500, 500, 0000000, 5) If Not @error Then MouseClick ( "Left" , $Coord[0], $Coord[1] , 1 , 0 ) endif endif Wendand is there anyway to move the mouse over the pixel without clicking on it?Mouse + Move ==> MouseMove(). See online help.CheersKurt Edited May 30, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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