hippohumper
Active Member
- Joined
- Jan 21, 2007
- Sythe Gold
- 0
- Messages
- 112
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.


