Point Checker

Discussion in 'Code Snippets and Tutorials' started by SonicBoom, Apr 3, 2007.

  1. SonicBoom

    SonicBoom Level I

    Joined:
    Mar 26, 2007
    Messages:
    121
    Likes Received:
    0
    im going to attempt to make a script that plays a game for you, but i need someone to make me a simple script that records places on the screen when i click the mouse or press F12
     
  2. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    weel open scar and select the game window. In the bottom there should a set of two numbers that change when you move the mouse. The first in the the x coordinate of the mouse adn the second is the y. So where you click write the two numbers down the code for that is clickmouse(xcoordinates , y coordinate, true);
     
  3. SonicBoom

    SonicBoom Level I

    Joined:
    Mar 26, 2007
    Messages:
    121
    Likes Received:
    0
    Thanks how would i also make something repeat until it accomplished it and then once it accomplished it it would do something else?
     
  4. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Code (Text):
    1. repeat;
    2. ///stuff to do
    3. Until (this happens)
    example
    Code (Text):
    1. reapt
    2. x := x+1
    3. clickmouse(123,456,true)
    4. Until (x = 5)
    5. ///stuff to do after a reapeat
    x is an integer and when x = 5 then the repeat stops