Jump to content
Sign in to follow this  
tezza3211

Need help plz

Recommended Posts

tezza3211

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

Share this post


Link to post
Share on other sites
kindlin

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

Share this post


Link to post
Share on other sites
rcmaehl

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
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×