
In my kiosk apps, to make sure no "pressed" characters are lost on a move out of screen-saver (they are usually sent to the PC via a bar code scanner or rfid reader) and to ensure the screen comes back on instantly, I use the following bits of code, along with a transparent cur cursor file, and disable all the screen saving/power saving options in the host OS. I'm not necessarily asking for a fix for either of the scripts if you know of a more efficient way of hiding the cursor, please share. I've posted the above scripts as this is as far as I have come in getting this to work. Inside the scripts, it does not seem to work. What surprises me is that if I put the command document.querySelector("body").style.cursor = "none" into the JavaScript console it works perfectly. However, they don't work for making the cursor disappear.

With each of these, when the mouse is inactive for more than five seconds the background color turns white, and when the cursor is moved the background turns black. SetTimeout("document.querySelector('#editor').style.background = '#fff'", 5000) ĭocument.addEventListener("mousemove", magicMouse) ĭocument.querySelector("body").style.cursor = "none" ĭocument.querySelector("#editor").style.background = "#fff" ĭocument.querySelector("body").style.cursor = "auto"

I've got two scripts that can do something similar: window.addEventListener("mousemove",ĭocument.querySelector("#editor").style.background = "#000" Furthermore, the primary user for this is myself, so there is little chance of confusion arising as a result. Nonetheless, many web-browsers seem to support it. The Lowdown.Is it possible to use JavaScript to set the cursor attribute to the property none if the mouse is inactive for a certain amount of time (say, five seconds) and set it back to auto when it becomes active again?ĮDIT: I realize that none is not a valid value for the cursor property. Please note, comments must be approved before they are published. Go to Windows Settings, then Devices, then Pen and Windows Ink.įrequent Phrasing: Remove annoying white circles.This radar or splash looking animation around the pointer is not too disruptive, but very pointless for most. The other annoying feature is the cursor animation every time you click with the pen.

Disable the "press and hold for right-clicking" box at the top.Select the "Press and Hold" option and click Settings.Or open up your Control Panel and search for it there. Go to the Windows menu and search "Pen and Touch".This is a 'Pen and Touch' feature that may work better with Touch screens but not so much with Pen Tablets/Displays. When pressing the pen to screen, a white circle will begin to form around the cursor, activating the 'Press and Hold' feature to bring up the right-click menu.

Follow along and we'll show you how to disable them! When using a graphics tablet on a Windows PC you might be irritated by some of the intrusive features that are enabled by default.
