a script needed for another game

Discussion in 'Script Requests' started by warhawk881, Aug 14, 2007.

a script needed for another game
  1. Unread #1 - Aug 14, 2007 at 11:55 PM
  2. warhawk881
    Joined:
    Aug 14, 2007
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    warhawk881 Newcomer

    a script needed for another game

    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:
     
  3. Unread #2 - Aug 15, 2007 at 2:27 AM
  4. HISTORY
    Referrals:
    0

    HISTORY Guest

    a script needed for another game

    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.
     
< **Buying Edgeville Yew Cutter and Draynor Willow Cutter** | I Need A Great Working Draynor Village Woodcutter And Banker >

Users viewing this thread
1 guest


 
 
Adblock breaks this site