SRL Archive - S.M.A.R.T.

[Suggestion] Lose Focus


[Nathan]

2012-01-05 18:42:41

Antiban suggestion here, a method which causes the mouse to go off the screen and actually have the applet lose focus? I do it all the times when I play, I move to another open window while I'm making potions for example. Getting the mouse off the screen can already be done, but the losing focus part, however, I don't think is possible?

YoHoJo

2012-01-05 18:44:31

Meh not necessary IMO, can Jagex even tell if we 'loose focus' or not of the client?
Antiban is nice and neat and all, but make a solid script and you will be just fine!
Interesting suggestion though, pretty neat.

Richard

2012-01-05 18:49:37

There is a method within SMART to lose focus, though I'm not sure if you can access it through a script in Simba?

[Nathan]

2012-01-05 19:14:19

From: Richard
There is a method within SMART to lose focus, though I'm not sure if you can access it through a script in Simba?

I'll look into it

From: YoHoJo
Meh not necessary IMO, can Jagex even tell if we 'loose focus' or not of the client?
Antiban is nice and neat and all, but make a solid script and you will be just fine!
Interesting suggestion though, pretty neat.

Yes, they very easily can, it would be a very simple applet.checkFocus() type thing, I don't know it off hand, but checking if your applet is in focus or not is like a one line of code function. Probably not necessary, but I like antiban :)

Brandon

2012-01-05 19:19:07

clientFrame.requestFocusInWindow();

That's from the source.. any time you try to remove focus from smart while it is enabled, it will auto-gain focus again.. multiple functions ensure that smart always has focus on the applet or when a canvas change happens.. that's how we're able to type through it..

Goodluck lol. Only way to remove focus from smart is to disable it.

BenLand100

2012-01-15 15:33:51

Use SMART's mouse methods to click a position that is not on the client and it will simulate loosing focus.

PhaseCode

2012-01-17 03:32:59

From: BenLand100
Use SMART's mouse methods to click a position that is not on the client and it will simulate loosing focus.


For those that need a random:


procedure MoveMouseOnOff;
begin
begin
case Random(40) of
20: MMouse((Random(MSX2) * -1),(Random(MSY2) * -1),10,10); //Off
30: MMouse(Random(MSX2),Random((MSY2)),10,10);//On
end;
end;
end;