Ransty
2012-09-02 07:07:35
Ok, so i have this script and it works perfectly, but the mouse seems to move to a diffrent spot every time. How can i fix this problem? How can i get it to its exact spot and make it stay there?
2012-09-02 07:07:35
2012-09-02 07:09:23
2012-09-02 07:17:14
2012-09-02 07:27:18
2012-09-02 07:35:24
From: Ransty
Do you mind explaining what you mean by -50? Im sort of confused. This is what i have
MoveMouse(279, 249);
EDIT: Im brand new to simba and programming :\ so sorry for sounding like a noob
Another EDIT: How the hell do i free DTM's? Ive tried the syntax at the bottom but it does nothing. I may aswell post my code here
2012-09-02 07:37:03
MoveMouse(279, 249-22);MoveMouse(279, 249-50);FreeDTM(NAME);
2012-09-02 07:39:49
From: Failure
If on another application.MoveMouse(279, 249-22);
If using SMART client.MoveMouse(279, 249-50);
It's due the bar up Runescape with Forums etc.
Freeing an DTM.FreeDTM(NAME);
2012-09-02 07:41:54
2012-09-02 07:48:36
2012-09-02 08:29:59
From: riwu
Why would there be an offset on non-RS application?
22 is actually for the login screen, while 50 is for ingame screen. And you have to take it into account as long as you call SetupSRL (which contains SRL_DisableNavBar), whether it's SMART doesn't make a difference.
2012-09-02 08:57:49
From: Failure
The 22 is needed when using for something else then Runescape. Like your desktop or something. Atleast for me.
2012-09-02 13:44:00
From: riwu
Well..that's because you called SetupSRL. And since FoundBar would return false on non-RS window it's assuming you are at login screen. Basically dont call SetupSRL at all if not scripting for RS and you won't need any manual offset.
2012-09-02 13:46:18
2012-09-02 20:37:20
From: Failure
Ohh oke, thanks explained why. Though I use some functions from SRL on non-RS applications :)
From: NKN
You can use SetupSRL
IIRC, MoveMouse isn't a SRL Function, so it shouldn't be affected?