Jump to content

Need help plz


Recommended Posts

Ok here is what i have so far but what im trying to do is repeat this action until the pixel colour is no longer present then carry on with another colour. then when all colours are done return to top and start over.

this is my 1st project and i have not had any help so far just looking and learning so to some people this might be noob question.

$pixelSearch=PixelSearch(560, 28, 769, 368, 0x737573)
If IsArray($pixelSearch)=1 Then 
MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) 
Sleep(1000)
MouseMove(518, 204, 10)
Sleep(1000)
MouseClick("left")
EndIf
Link to comment
Share on other sites

Well, make an array of each color you want it to find. Make a loop that does your code, but inserts the next color from the array each pass. When it does all the colors, have it loop again. Something like,

$Colors[6]=[0x253525,0xABG325,...]

while 1
for i=0 to 5

$pixelSearch=PixelSearch(560, 28, 769, 368, $Colors[$i])
If IsArray($pixelSearch)=1 Then 
MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) 
Sleep(1000)
MouseMove(518, 204, 10)
Sleep(1000)
MouseClick("left")
EndIf

next
wend
Link to comment
Share on other sites

This is just a rephrase of a game automation program you asked earlier. Game Automation is not discussed here.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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