• Log in or sign up for an account here: https://www.sythe.org/login

a script needed for another game

warhawk881

Newcomer
Joined
Aug 14, 2007
Sythe Gold
0
Messages
1
Hello everyone, I need a script that does the following

After the script starts
It presses F2
waits
Presses F1
Then find a color on the screen that will appear randomly
When the color is found press F1 again.
wait
then repeat the whole thing again.

Is this possible? I really need some help:confused:
 
Code:
const
  F1key = 0;
  F2key = 0;
  waits = 0; //in seconds
  TheColor = 0;

var
  x, y : integer;

begin
  repeat
    KeyDown( F1key);
    wait( 20 + random( 30));
    Keyup( F1Key);
    wait( waits * 1000);
    repeat
      wait( 50);
    until( FindColor( x, y, TheColor, 0, 0, 1023,767))
    wait( waits * 1000);
  until( false)
end.

i dont know what theASCII code for function keys are so you'll just have to google them.
 
Runescape Gamblingrunescape gambling
Back
Top