Jump to content

jackiemagpie

Members
  • Posts

    6
  • Joined

  • Last visited

jackiemagpie's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I said the goal: When colour appears in coordinates, press a. Simple right ? Also pixel got the colour but dont press a, it finishes the script.
  2. Hi I am new and trying to writing macro but I have one problem. My function must: ""When the colour appears in coordinates, then press "a" """ but I cant find where I need to put the send("a") command . When I put in the While.....Wend it doesnt wait the colour to press "a". When I put the out of the While...Wend line then it doesnt press the "a". Anyone knows the where I need to put ? Local $WaitPixelColor = 0xF8F4F8, $waitpixel While 1 $waitpixel=PixelSearch (340,75,1148,440, $WaitPixelColor) If Not @error Then ExitLoop WEnd
  3. yeah but how can I declare the variable, that what I want to know ?
  4. Hi I'm new in programming and when I try to wait colour to continue the action, I get this error. Variable used without being declared.: $waitpixel=PixelSearch (673,154,842,302, $WaitPixelColor,0xF8F4F8) $waitpixel=PixelSearch (673,154,842,302, ^ ERROR And That's my code. Anyone knows why getting error ? While 1 $waitpixel=PixelSearch (673,154,842,302, $WaitPixelColor,0xF8F4F8) If Not @error Then ExitLoop Sleep(10) WEnd
×
×
  • Create New...