Jump to content

Recommended Posts

Posted

Trying to figure out a way to do a loop within a loop, so I want it to

If this happens, then do this until this pixel = this colour, then exit loop.

Can someone help please?

Posted (edited)
1 hour ago, Jos said:

Care to elaborate on what it is you want exactly as this description is "clear as mud". ;) 
Show us some the script code too you have that needs modification.

Jos

Global $coord = PixelSearch(561, 378, 715, 485, 0xC9C853)

While 1
   If PixelGetColor(712, 80) = 0x463F28 Then
      ConsoleWrite("LOW" & @CRLF)
      If Not @error Then
      MouseClick("left",$coord[0],$coord[1])
      Sleep (2000)
      MouseClick("left",$coord[0],$coord[1])
      Sleep (2000)
      MouseClick("left",$coord[0],$coord[1])
      Sleep (2000)
      MouseClick("left",$coord[0],$coord[1])
      Sleep (100)
      EndIf
   EndIf
WEnd

So Instead of this I want it to just spam click the $coord[0] and $coord [1] pixel, until 712, 80 coordinates are equal to a different colour. That's what I'm struggling to figure out how to do

Edited by Dxnny
  • Developers
Posted (edited)
1 hour ago, Dxnny said:

I want it to just spam click the $coord[0] and $coord [1] pixel, until 712, 80 coordinates are equal to a different colour.

Spam == game automation....  right?

Not sure what you expect this statement to do, but it not test the success of Consolewrite()! :

 If Not @error Then

Jos

Edited by 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.
  :)

Posted
17 minutes ago, Jos said:

Spam == game automation....  right?

Not sure what you expect this statement to do, but it not test the success of Consolewrite()! :

 If Not @error Then

Jos

I just want it to spam click a pixel, I've been copying stuff from peoples codes, that was in there, so not sure, still quite new to this.

  • Developers
Posted
11 minutes ago, Dxnny said:

just want it to spam click a pixel,

Since you conveniently avoid giving me an answer I can only assume this is for a game and hence now closed.
Please read out forum rules carefully and PM me in case you feel the need to make a case this isn't for a game and can prove/explain it properly.

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.
×
×
  • Create New...