Tutorial on the basics

Discussion in 'Archives' started by hippohumper, Mar 9, 2007.

Tutorial on the basics
  1. Unread #1 - Mar 9, 2007 at 9:27 PM
  2. hippohumper
    Joined:
    Jan 21, 2007
    Posts:
    112
    Referrals:
    0
    Sythe Gold:
    0

    hippohumper Active Member

    Tutorial on the basics


    Small Tutorial on scar



    Okay I know there are plenty of these out there, but why not throw one more into the mix? I'll show you a few basic commands.

    First off we'll learn how to move the mouse from one spot to the next. The command is "Movemouse(x,y;integer)"

    Replace the x and the y with the coordinates that you want the mouse to move to. Coordinated can be found in the bottom left hand corner of the scar window. So try entering something in like Movemouse(100,100) in the main loop (between the beginning and the end. Press play and see if it works.

    To make it more human like simply make the command "movemousesmooth"
    so it'd be "movemousesmooth(100,100) instead.

    Next we'll learn how to get the mouse to click. The command is "clickmouse(x,y;integer; left:boolean)" Let x and y be the coordinates where you want the mouse to click and then have true or false for the type of click you want the mouse to carry out (right or left) True=left click and False=right

    So clickmouse(100,100,true) would click that coordinate with a left click

    Clickmouse(100,100,false) would right click

    Next we will learn how to wait between doing things. The command is wait(ms:integer) let the integer be the number of miliseconds you want to wait. Wait(1000) would wait 1 second so

    movemousesmooth(100,100)
    wait(1000)
    Clickmouse(100,100,true)

    would move the mouse to that spot, wait a second then click. The wait can be adjusted to any number you want.

    next we will learn how to write something in the debug box. The command is writeln(string) so writeln('hey there') would write that in when played. The quotation marks are crutial when writing something in.

    Try this

    writeln('hey there')

    and press play, see that it writes it in the box in the bottom of the scar screen?

    Try making your mouse move over your internet explorer icon, wait for a second, then double click, and then wait 5 seconds and write in the box "internet explorer was opened"


    The script should look something like this



    Code:
    program Internet;
    begin
    Movemousesmooth(94,469)
    wait(1000)
    clickmouse(94,469,true)
    clickmouse(94,469,true)
    wait(5000)
    writeln('Internet Explorer has been opened!!!')
    end.
    
     
  3. Unread #2 - Mar 16, 2007 at 10:24 AM
  4. DuffMan1020
    Joined:
    Mar 6, 2007
    Posts:
    185
    Referrals:
    0
    Sythe Gold:
    0

    DuffMan1020 Active Member
    Banned

    Tutorial on the basics

    Hey, Nice little tut on scar ;)

    Since when did you get U.E?.
     
< [TUT] How to password protect MSN chat logs. {by Boom Heashot} | VOTE. Please. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site