Hey guys I'm making my first attempt to use simba outside of RS and am having a little trouble with input.
The idea is that when the script no longer finds a color it presses 'f' (an in game action).
To my confusion, when the virtual f key is pressed the action is NOT performed. It DOES, however, type an 'f' into the game's chatbox if I open it while the program is running.
If anyone has ideas I'd love to hear them thanks, and here's the code:
Simba Code:
procedure fish;
begin
repeat
wait(4000);
keydown(70);
wait(30 + random(50));
keyup(70);
wait(2000);
if FindColorSpiralTolerance(center.X,center.Y,color,boxStart.x,boxStart.y,boxEnd.x,boxEnd.y,tolerance) then
begin
writeln('Found the color');
while FindColorSpiralTolerance(center.X,center.Y,color,boxStart.x,boxStart.y,boxEnd.x,boxEnd.y,tolerance) do
wait(50);
wait(500);
keydown(70);
wait(30 + random(50));;
keyup(70);
end;
until(false);
end;