SRL Archive - Other Scripts

Opposite Mouse!


Daniel

2010-09-05 01:57:22

Well, I was bored. So yeah :D

Basically, it inverts the mouse movements.

[php]
// By Mayazcherquoi/Dan's The Man.
// - Run the script by the run button to run.
// - Either manage to press the stop button or press F3 to stop the script.
// - Enjoy!

program OppositeMouse;

var
cdX, cdY: Integer;
X, Y, sX, sY: Integer;

begin
SetDesktopAsClient;
GetClientDimensions(cdX, cdY);

repeat
GetMousePos(X, Y);
Sleep(1);
GetMousePos(sX, sY);

X := X + ((sX - X) * -1);
Y := Y + ((sY - Y) * -1);

if(X < 1) then
X := 1 else
if(X >= cdX - 1) then
X := cdX - 2;

if(Y < 1) then
Y := 1 else
if(Y >= cdY - 1) then
Y := cdY - 2;

MoveMouse(X, Y);
Until(IsKeyDown(VK_F3));
end.
[/php]

Enjoy! Cos' it only took a couple of seconds to make :/

JuKKa

2010-09-05 11:51:14

Lol, i ran this, then my autofighter. It failed horribly =DD

pretty neat this

nielsie95

2010-09-05 12:06:56

Pretty cool :p

Rick

2010-09-05 12:35:20

Hehe, thats entertaining.

mastaraymond

2010-09-05 12:55:17

Haha, win :)

JPHamlett

2010-09-05 18:10:09

This is actually pretty cool.

It might be an interesting "prank" to do on some unsuspecting victims.

Awkwardsaw

2010-09-05 18:26:34

im attempting to play rs with this, its not hard actually, but fun script :D

i'll be using this as a prank soon

Wizzup?

2010-09-05 18:28:34

Works on Linux too. :D

Daniel

2010-09-06 07:57:53

Lol, it was kinda annoying to make, because at first I thought all you needed to do was just:
[php]
repeat
GetMousePos(X, Y);
Sleep(1);
GetMousePos(sX, sY);

X := X + ((sX - X) * -1);
Y := Y + ((sY - Y) * -1);

MoveMouse(X, Y);
Until(IsKeyDown(VK_F3));
[/php]

But when you moved it to the edges of the screen, it screwed up. But I tackled it eventually :p

From: Wizzup?
Works on Linux too. :D

Of course. What is a Simba script without Linux and Windows support out-of-the-box?

anonymity

2010-09-06 11:37:12

Hahaha, this is way more entertaining than it should be.

E: I totally am going to add this to a few friends' startup. mod it to switch to the more hidden mode though. hehe… good stuff.