gamingvexation
2014-10-20 18:53:01
So basically, I have no idea what I'm doing :D
I'm trying to set up a bot for a game I play and need a little bit of help:
program TradeBot;
begin
If GetColor(1672, 488) = 14341176 Then
Wait(3000);
PressKey(13);
SendKeys('Hello, I''ll type into any targeted window…', 155, 30);
PressKey(13);
end.
That's what I have, all I have for testing purposes.
What I want is for the above to loop until a color change is noticed. Something kind of like this?
program TradeBot;
begin
If GetColor(1672, 488) = 14341176 Then
repeat
Wait(3000);
PressKey(13);
SendKeys('Hello, I'll type into any targeted window…', 155, 30);
PressKey(13);
Until(GetColor(1672,488) = 123456);
end.
I tried something along those lines, without success. I was wondering how to go about doing something like this. Thank you for your help! :)
I'm trying to set up a bot for a game I play and need a little bit of help:
program TradeBot;
begin
If GetColor(1672, 488) = 14341176 Then
Wait(3000);
PressKey(13);
SendKeys('Hello, I''ll type into any targeted window…', 155, 30);
PressKey(13);
end.
That's what I have, all I have for testing purposes.
What I want is for the above to loop until a color change is noticed. Something kind of like this?
program TradeBot;
begin
If GetColor(1672, 488) = 14341176 Then
repeat
Wait(3000);
PressKey(13);
SendKeys('Hello, I'll type into any targeted window…', 155, 30);
PressKey(13);
Until(GetColor(1672,488) = 123456);
end.
I tried something along those lines, without success. I was wondering how to go about doing something like this. Thank you for your help! :)