SRL Archive - Help

Moving mouse.


Failure

2012-09-02 05:18:02

Hello there, I have a question since I'm trying something. I try to move my mouse in an game (FullScreen and or Windowed Mode) but it wont move the mouse at all!

Even if I set Target as the game (Using Select a Client thing) it wont move the mouse in the game!

Some help would be appreciated! :)

riwu

2012-09-02 05:38:19

Call SetUpSRL; at main program.

Failure

2012-09-02 05:58:40

From: riwu
Call SetUpSRL; at main program.


I have, I'm using MoveMouse instead of MMouse, is that the problem?

riwu

2012-09-02 06:09:42

Post the script. We are not psychologists.

Failure

2012-09-02 06:15:52

It doesn't look beautiful or anything, no need since it's not worth it hehe. For now, I found an alternative way.

Program New;

{$i srl/srl.simba}

var x, y:Integer;

//////////////////////////////////////////////////
//Use an Hammer or MPM7!//
//////////////////////////////////////////////////


Begin
SetupSRL;
ClearDebug;
MouseSpeed := 50

Repeat

If IsKeyDown(97) then //Numpad 1
Begin
Repeat
PressKey(82);
Wait(10);
Until IsKeyDown(98); //Numpad 2
End;

If IsKeyDown(99) then //Numpad 3
Begin
Repeat
KeyDown(103); //Camera left
Wait(1000);
KeyUp(103);
Wait(100);
KeyDown(104); //Camera right
Wait(1000);
KeyUp(104);
Until IsKeyDown(100); //Numpad 4
End;


Wait(50);

Until False;

End.

riwu

2012-09-02 06:18:06

Huh i dont see any MoveMouse there?

Failure

2012-09-02 06:26:08

From: riwu
Huh i dont see any MoveMouse there?


I removed it since it doesn't works anyways if an game is in FullScreen.