How to hide cursor ?

I can easily hide the mouse over the xojo app. But my application is where the xojo app is never in front, it is in the back and I want to be able to hide the cursor when other apps are in front. I tried the MBS hide but it only works on the xojo app, when you have any other app in front it will not hide the cursor. The priority is OSX for now, but ideally a solution for both Win8 and OSX will be best. Anybody every done this? I can see tons of threads on here for hiding the cursor but all I looked at are for the xojo app only. An alternative would be to make the cursor become something else, even a png with no color detail, or a tiny dot that is hard to notice.

Thanks.

Obvious question: why would you want to do such an anti-social thing?
If you want total control of the machine, search for ‘Kiosk’ as a starting point.

Look at http://documentation.xojo.com/index.php/Cursors for invisiblecursor. It is cross platform.

Thanks Michel but I have tried those, no success except on the xojo app. I want to turn off and on the cursor while other apps are in front. I have tried these methods. Maybe there is a different way to call these?

MouseCursor = System.Cursors.StandardPointer

MouseCursor = System.Cursors.InvisibleCursor

[quote=154718:@Todd Chapman]Thanks Michel but I have tried those, no success except on the xojo app. I want to turn off and on the cursor while other apps are in front. I have tried these methods. Maybe there is a different way to call these?

MouseCursor = System.Cursors.StandardPointer

MouseCursor = System.Cursors.InvisibleCursor[/quote]

I did not get that you wanted to do it system wide. What you need is probably here, for Mac and you will have to declare into it :
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/

For Windows, start here http://msdn.microsoft.com/en-us/library/windows/desktop/ms648393(v=vs.85).aspx

Be warned that hiding the cursor like that may lead the user to believe his computer is stuck, forcing him to reboot, probably report your app as malware, call your support, scream and yell, and curse you for eternity.

This will never fly for the MAS either.

Whatever you want to achieve, you want to consider the bad karma that may ensue.

I don’T think you can control the cursor if your app is in the background.

[quote=154763:@Michel Bujardet]I did not get that you wanted to do it system wide. What you need is probably here, for Mac and you will have to declare into it :
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/

For Windows, start here http://msdn.microsoft.com/en-us/library/windows/desktop/ms648393(v=vs.85).aspx

Be warned that hiding the cursor like that may lead the user to believe his computer is stuck, forcing him to reboot, probably report your app as malware, call your support, scream and yell, and curse you for eternity.

This will never fly for the MAS either.

Whatever you want to achieve, you want to consider the bad karma that may ensue.[/quote]
I must admit my reaction would be “oh cr*p, a virus!!” it would give the impression the system was hijacked
People don’t read, read me’s or rarely do, even if you go into great detail people will react to the first person to complain and all your hard work will be wasted, its funny how negative feedback can linger

NSCursor doesn’t work for me either. MSB NSCursor is built on that I thikk. Btw the cursor only hides for a 1/2 second at most. There is redundant methods to avoid cursor stuck as hidden. This is for macro where I do not want to see the cursor while it now workng. Then it is made visible right after.

Xojo resets the cursor every few milliseconds, so no real way to set it via plugin :frowning:

If your app is not in front, the user will be expecting his Mac to remain responsive and show the cursor. Why do you want to hide the cursor for the whole system, then ?

Could you explain step by step the process you want to carry out ? There maybe a different way, perhaps.

I am doing macro behind the scenes that manages mouse moves and keypresses. Some of the mouse moves are jumpy as in cases of moving the scroll bar. So if I can hide the mouse while it is moving a scroll bar then the appearance is improved. After the scroll process, the cursor should reappear

My app is never in the front.