JohnDoes
2013-09-01 00:39:57
Hello,
I'm having a problem with some code i'm trying to use on a application. I wrote a script to use it on the main menu to auto log me in but once i get into the program i was trying to write a new script but it doesn't pick up any colors.
After trying to get it to pick up different colors inside the application and none of it working i've reached the point where i'm completely lost and can't find anything in search. From my understanding this code should pick up any color on my screen… however it isn't.
If anyone could give me some help it'd be great.
Thanks
I'm having a problem with some code i'm trying to use on a application. I wrote a script to use it on the main menu to auto log me in but once i get into the program i was trying to write a new script but it doesn't pick up any colors.
After trying to get it to pick up different colors inside the application and none of it working i've reached the point where i'm completely lost and can't find anything in search. From my understanding this code should pick up any color on my screen… however it isn't.
If anyone could give me some help it'd be great.
Thanks
program LocateRod;
var
x, y:Integer;
procedure Cast;
begin
if FindColorSpiralTolerance(x, y, 5059883, 0, 0, 1919, 1078, 245) then
// Pick up any color on the screen
wait(500);
MoveMouse(765, 1045); // Problem, Does not run
ClickMouse(x, y, 1); // Problem, Does not run
end;
begin
MoveMouse(100,100);
ClickMouse(100,100,1);
repeat
Cast;
until(false);
end.