k9thebeast
2014-03-09 04:43:44
So there are three stalls next to eachother, and I'm using Auto Color Aid (ACA) to grab a color from one of them. DTMs are not working well for this. The only color that really works is the top of the stall, but there are three stalls right next to eachother. I can use the uptext function to check that the color it finds is on the correct stall.
If the color it finds and moves the mouse to isnt the correct stall, I have it re-search using a simple recursive call. However, sometimes it gets stuck in a loop always finding the same color in the same exact spot. I have experimented with moving the mouse in random directions before the recursive call, but that doesnt work.
The code is simple
If FindColorSpiralTolerance(X,Y,StallColor,MSX1,MSY1,MSX2,MSY2,0) Then
I have thought about editing the "search" x,y,x1,y1 values, but I really dont wan't to as this could lead to trouble I dont want to have to deal with. Does anyone have any ideas?
Thanks
k9
If the color it finds and moves the mouse to isnt the correct stall, I have it re-search using a simple recursive call. However, sometimes it gets stuck in a loop always finding the same color in the same exact spot. I have experimented with moving the mouse in random directions before the recursive call, but that doesnt work.
The code is simple
If FindColorSpiralTolerance(X,Y,StallColor,MSX1,MSY1,MSX2,MSY2,0) Then
I have thought about editing the "search" x,y,x1,y1 values, but I really dont wan't to as this could lead to trouble I dont want to have to deal with. Does anyone have any ideas?
Thanks
k9