How to hide mouse cursor?

Just starting out? Need help? Post your questions and find answers here.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Don't you guys have keyboards?

What do you mean?
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

PB wrote:Don't you guys have keyboards?
Guess! :shock:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Oh, do you mean for us just to hit Escape instead of killing the app?
Sure, but we were discussing what to do if you lost the mouse, you
know, if you killed the app by mistake. :) And you only quoted part
of my reply, which was discussing MY app that didn't have a keyboard
option to restore the mouse.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Oh, do you mean for us just to hit Escape instead of killing the app?
Actually I tought you were smart enuff to figure it out but I was wrong. :twisted:

Well, it's bloddy simple. The keyboard is the secondary hardware input device. So you can control your computer with it to access the control panel and reload the default mouse set. No Rebbot, no logoff.

Anyway, no one should really use this method as it involes too many risks. This is all theory, no practial use.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> access the control panel and reload the default mouse set

I see. Yes, that works.

> I tought you were smart enuff to figure it out but I was wrong

The thought didn't even cross my mind, but that doesn't mean I'm not smart.
I was too busy trying to work out what your response had to do with my post.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: How to hide mouse cursor?

Post by IdeasVacuum »

When the app exits, the following code will restore the mouse pointer set (similar to the User using the Control Panel):

Code: Select all

SystemParametersInfo_(#SPI_SETCURSORS,0,#Null,#Null)
                Delay(1)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply