[Windows] Hide Pointer While Typing

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
x-15a2

[Windows] Hide Pointer While Typing

Unread post by x-15a2 » 2015-02-07, 12:17

For many versions, Windows has included a mouse option: Hide Pointer While Typing. Image

Enabling this option in many (most?) programs has no effect, one notable exception being Notepad, where the feature works perfectly.

I've looked for an extension that will enable this feature in PM but have been unsuccessful. Is it known what is required for a program to enable the use of this mouse option and what would be the potential impact of supporting it in PM, or is it even possible programatically?

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5174
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: [Windows] Hide Pointer While Typing

Unread post by Night Wing » 2015-02-07, 13:06

I would "never" hide my mouse pointer while typing and I seriously doubt many people would hide their pointer. And I guess this is why you can't find an extension to do this in Pale Moon.

Maybe you should make a poll and see how many people would actually hide their mouse pointer while typing.

.
Linux Mint 21.3 (Virginia) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
MX Linux 23.2 (Libretto) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
Linux Debian 12.5 (Bookworm) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox

x-15a2

Re: [Windows] Hide Pointer While Typing

Unread post by x-15a2 » 2015-02-07, 13:18

I would because the cursor often obscures part of what I'm typing, so for me it's nice for it to go away. With the slightest touch of the mouse or cursor, or by not typing the pointer reappears. Besides, it's a Windows feature (option), so why not support it if wanted by the user?

I didn't and don't want a debate on the merits and demerits of the feature, that's up to the individual. Rather, I'm asking if support for this provided Windows option is possible.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35636
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: [Windows] Hide Pointer While Typing

Unread post by Moonchild » 2015-02-08, 00:21

It should be possible, since the mouse pointer can be changed by the application it's hovering over.
Whether it is easy is a completely different question ;) The browser UI isn't your standard windows application for starters, and it is mostly event-driven, not timer-driven. That alone will make it difficult for a feature like this to be implemented properly.
That being said, it may even be possible to implement something to this effect in an extension, binding the cursor change behavior to text input fields, but it will be tricky even then, and will need some solid design to cater to all contingencies.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Mercury

Re: [Windows] Hide Pointer While Typing

Unread post by Mercury » 2015-02-08, 00:57

Not sure if this is helpful, but it seems that it's up to each application to respect the setting, which can be retrieved by using SystemParametersInfo and passing SPI_GETMOUSEVANISH as the first parameter.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35636
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: [Windows] Hide Pointer While Typing

Unread post by Moonchild » 2015-02-08, 00:59

Mercury wrote:Not sure if this is helpful, but it seems that it's up to each application to respect the setting, which can be retrieved by using SystemParametersInfo and passing SPI_GETMOUSEVANISH as the first parameter.
It's easy enough to read the preference from the Windows OS, sure, but the actual implementation has to be done by the actual application itself, and that is the problem.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

x-15a2

Re: [Windows] Hide Pointer While Typing

Unread post by x-15a2 » 2015-02-08, 02:34

Thanks for the explanation, Moonchild. I was hoping that this was controlled by Windows, didn't realize that each program needed it's own code to accomplish the feat. Makes me wonder why the option was ever included in the Windows mouse setup instead of just being an option in individual programs. Oh well, a lot of things in Windows just don't make sense.

I have look for an extension, so far I've not found one, but I did find a program called Cursor Hider that I'm looking at, it seems to work but seems a bit quirky and I'm not convinced that it's worth $15 per workstation.

Thanks again for the info, much appreciated.

Locked