xHideMouse - automatically hide/show the system cursor

Xlobby plugin development

xHideMouse - automatically hide/show the system cursor

Postby S Pittaway on Fri Jun 09, 2006 1:51 pm

xHideMouse


This gives you the option of automatically hiding/showing the default system cursor, you can also set it to auto hide it xxx msecs afther the last mouse action (default is 5 seconds).


Download link (including source code) -
http://www.france.xlobby.com/plugins/xHideMouse.zip (updated on 5 June 2006)



Functions are -

hide
Hide the default system cursor.

show
Restore the default system cursor if its been hidden.

start
Turn on auto cursor hiding.

stop"
Turn off auto hiding and restores the mouse if hidden.

[u]delay:delay_in_msecs

change the auto hide delay to delay_in_msecs", where delay_in_msecs is a integer (eg 1000 = 1 second).

restore missing cursor
this will load a new default cursor, this can be usefull xlobby has crashed and the cursor is permanantly hidden. you should only call this if xlobby (or the plugin) has crashed and you have been left with no cursor. if you do not like the cursor, you can change "restore.cur" to whatever you want.




Updates

05 June 2006 : the plugin will now shutdown cleanly when it receives a close command from xlobby, also added "restore missing cursor" for emergancy use if the cursor is "lost" :)
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England