Jump to content

hhelp on this script


Guest boon
 Share

Recommended Posts

Guest boon

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 work

and is there anyway to move the mouse over the pixel without clicking on it?

HotKeySet("{ESC}", "Terminate")

Func Terminate()

    Exit 0

EndFunc

While 1

  $Coord = PixelSearch ( 0, 0, 500, 500, 0000000, 5)

  If Not @error Then

  MouseClick ( "Left" , $Coord[0], $Coord[1] , 1 , 0 )

EndIf

Wend

i have tried changing the 1 in mouseclick but then it would'nt move at all

thx for any help

Link to comment
Share on other sites

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
Wend

and is there anyway to move the mouse over the pixel without clicking on it?

Mouse + Move ==> MouseMove(). See online help.

Cheers

Kurt

Edited 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...