nomousy - Disable/Hide your mouse pointer [CMD]
A good example of where simply moving the mouse offscreen isn't sufficient is if you're running a kiosk with touchscreen and you want to let people click buttons but you don't want them to see a mouse pointer.
Nomousy does the job very nicely.
It disables the mouse (freezes where it is), so the cursor has to be moved off screen beforehand.does it actually make the mouse invisible, or simply move it off screen?
This script has fewer features, it is not a replacement of Nomousy. More like a demo, what you can do with 10 lines of AHK code. If you just need to remove the mouse cursor, you can do it without an external program.
Nomousy doesn't actually hide the cursor. It loads and uses a transparent cursor instead.
:idea:
So, do mouse clicks (on surprise spots) still work?Nomousy doesn't actually hide the cursor. It loads and uses a transparent cursor instead.
Yes, mouse clicks should still work ok. I'm not sure what you mean by "surprise spots" though. Would you mind clarifying? The mouse should still have full movement and capabilities when only the hide option is used with nomousy (as far as I remember...).
So, do mouse clicks (on surprise spots) still work?Nomousy doesn't actually hide the cursor. It loads and uses a transparent cursor instead.
!z:: If (BlockMouse := !BlockMouse) { MouseMove 9999,9999,0 BlockInput MouseMove } Else { BlockInput MouseMoveOff MouseMove -A_ScreenWidth/2,-A_ScreenHeight/2, 5, R }
In other words, is it possible to hide the mouse only if it's x position is, for example, greater than 1024?
This is useful if, for example, you have a touchscreen on monitor 2 and don't want to see the mouse pointer when people click.
Yes and no. There is currently an option for hiding specific cursors (for example, you could hide the I Beam cursor so that the cursor doesn't appear when typing in Notepad or in any other application that would display the I Beam cursor. Hiding other specific cursors is also possible) but an option doesn't currently exist to only hide when within a specific area. You could possibility add this functionality by keeping track of the position of the mouse and only hide if it leaves the area for monitor 2. I'll look into adding this functionality in a future version of nomousy though. Thanks for the suggestion .I'm trying to hide the mouse only on Monitor 2, is this possible with NoMousy?
In other words, is it possible to hide the mouse only if it's x position is, for example, greater than 1024?
This is useful if, for example, you have a touchscreen on monitor 2 and don't want to see the mouse pointer when people click.
Thanks for providing another possible alternative . While moving the mouse off-screen can be useful, I have always tried to avoid using this method as it seems likely to not function as expected on some machines (although likely a small number ATM) and seems very likely to fail or produce undesireable results in the future, since the method relies on moving the mouse to a non-existent (or at least non-visible) location.Here is an even simpler script then this one (which I also updated) to move the cursor off screen and back with Alt-Z (not for Win9x). Mouse clicks are still processed, as they were in the lower right corner.
!z:: If (BlockMouse := !BlockMouse) { MouseMove 9999,9999,0 BlockInput MouseMove } Else { BlockInput MouseMoveOff MouseMove -A_ScreenWidth/2,-A_ScreenHeight/2, 5, R }
You are absolutely right. One can try the lower right corner, sacrificing a couple of pixels, but all these solutions have their limitations. One can try them, and if one works for a particular task, use it.While moving the mouse off-screen can be useful, I have always tried to avoid using this method as it seems likely to not function as expected on some machines
I understand the hotkey and If/Else part and I've been able to use BlockInput before, but Idon't understand the rest.
I assume it uses functions coz I haven't even started on them in the help files yet.
If not could you point me in the right direction.
What i'd like is for the mouse movement incurred by unhiding (short dart to center of my 2nd monitor) to not be seen.
!z:: ; Alt-Z hotkey, change to your liking If (BlockMouse := !BlockMouse) { ; Toggle the BlockMouse variable and check if it is TRUE or FALSE MouseMove 9999,9999,0 ; Move the cursor to the lower right corner (= A_ScreenWidth, A_ScreenHeight) BlockInput MouseMove ; Freeze the mouse cursor } Else { ; If unblock: BlockInput MouseMoveOff ; allow the mouse cursor to move MouseMove -A_ScreenWidth/2,-A_ScreenHeight/2, 5, R ; move it to the center of the screen }If you want the mouse cursor to instantly appear, change the 5 in the last line to 0. Also, you can use other relative coordinates (R in the end of this line = relative movement). If you remove this line, the mouse becomes active in the lower right corner.