SRL Archive - Jr. Member General Help and Discussion

SMART Cursor Dot


Pavement

2015-05-12 04:26:15

Is it possible to find the script responsible for drawing the red dot where the virtual cursor is in SMART to change its size/colour?

I took a look in the different parts of the SRL-OSRS include to do with SMART but I couldn't find anything about the cursor dot drawing. Any help appreciated. Thanks

Justin

2015-05-12 06:11:14

This is where SMART draws the red dot

https://github.com/BenLand100/SMART/blob/417384ba180df5300109716087f5cd97ab7102a6/src/Client.java#L381

You will need to recompile SMART if you want to change it.
See: https://villavu.com/forum/showthread.php?t=86387

Pavement

2015-05-12 06:37:27

Many thanks Justin.

E: Seems too much effort for just a change in cursor draw size. Do you think continuously calling a SMART_drawcircle or similar would be much use if I was looking for a way to monitor a new scripts mouse movements more easily?

Richard

2015-05-12 07:22:43

From: Pavement
Many thanks Justin.

E: Seems too much effort for just a change in cursor draw size. Do you think continuously calling a SMART_drawcircle or similar would be much use if I was looking for a way to monitor a new scripts mouse movements more easily?


Haven't used Simba in about 5 years, but I expect that this wouldn't work, as it isn't threaded, and so the redraw would only occur once in a loop, so it wouldn't be a "real-time" mouse.

That said, it's not too hard to change the mouse cursor. A very basic understanding of the AWT graphics object is all you need