Page 1 of 1

Toggle Mouse Pointer Transparency

Posted: 20 Mar 2024, 08:26
by javelin69
I was wondering if it is possible to toggle mouse pointer transparency without having to download/create a transparent cursor and then select it through the Windows control panel. If anyone has knowledge of such Wizardry, I would be very grateful if you could point me in the right direction.

I have followed a lot of dead leads with no luck. Was hoping someone may have knowledge of a command line app that can do this. The I could then write a script to run the app with the desired settings.

Essentially I want to hide a series of mouse movements sent from ahk from the user.

Re: Toggle Mouse Pointer Transparency

Posted: 22 Mar 2024, 00:07
by lmstearn
Hi, changing the mouse cursor from a transparent cursor image file you have created might be the best approach, there is also SetSystemCursor and RestoreCursor for effects on all cursors, in the LoadImage function try:

Code: Select all

LR_LOADTRANSPARENT := 0x00000020