Jump to content

Recommended Posts

Posted

okay so if im using pixel search to find a certain color, but then the menu closes i want it to stop searching for the pixle or to pause search, untill another command is ran like sleep or mouseclick whatever, then once that command is done it will continiue to pixle search and do what ever the do loop says if it finds the pixle

Posted (edited)
HotKeySet("{F8}", "ex")

$x = WinActivate("Document - WordPad")

Local $paste = 1
Global $pix = True



if $pix = True Then
   EndIf
              Do
         $pix = PixelSearch(-1919, 0, -12, 1004, 0xFFFF00, 5)
      MouseClick("right", $pix[0], $pix[1],1,1)
      Sleep (850)
      MouseClick("left", $pix[0] + 15, $pix[1] + 55,1,1)
      Sleep(2000)
      $paste = $paste + 1
   Until $paste = 1

MouseClick("right", -1450, 35,1,1)
MouseClick("right", -1455, 34,1,1)




Func ex()
   MsgBox(0,"Exiting", "close")
   Exit
EndFunc

after it does the first bit it says

Quote

Subscript used on non-accessible variable.:
MouseClick("right", $pix[0], $pix[1],1,1)
MouseClick("right", $pix^ ERROR

in the console 

Edited by redman12
  • Developers
Posted

@redman12,

You seriously think this is now within our forum rules when you change a few things in the same script that was previously not allowed.

You better read those rules properly now as this is your final warning.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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