Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

nomousy - Disable/Hide your mouse pointer [CMD]


  • Please log in to reply
67 replies to this topic
Leon
  • Members
  • 179 posts
  • Last active: May 22 2008 02:41 PM
  • Joined: 27 Aug 2007
Thanks Laszlo.

Leon
  • Members
  • 179 posts
  • Last active: May 22 2008 02:41 PM
  • Joined: 27 Aug 2007
Abother question:
With your script it reappears in the center of my second monitor.
I wanted to get mouse to reappear in position where it was before dissappearing.

I've tried several ways of doing this but they either cause the mouse to end up in the top left corner of mon1 or in the bottom right corner of mon1 or mon2.
Here's an example:
!z::
CoordMode, Mouse                           ; added this
MouseGetPos, OrigX, OrigY               ; added this
If (BlockMouse := !BlockMouse)
{
 MouseMove 9999,9999,0                 ; (tried changing this to A_ScreenWidth,A_ScreenHeight)
 BlockInput MouseMove
}
Else
{
 BlockInput MouseMoveOff
 MouseMove OrigX, OrigY, 0, R          ; move back to origin (doesn't work - mouse reappears in bottom right corneer of mon2)
}


Laszlo
  • Moderators
  • 4713 posts
  • Last active: Mar 31 2012 03:17 AM
  • Joined: 14 Feb 2005
This version revives the mouse cursor at the point where it disappeared:
CoordMode Mouse

!z::

   If (BlockMouse := !BlockMouse) {

      MouseGetPos OrigX, OrigY

      MouseMove A_ScreenWidth,A_ScreenHeight,0

      BlockInput MouseMove

   } Else {

      BlockInput MouseMoveOff

      MouseMove OrigX, OrigY, 0

   }


polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012

With your script it reappears in the center of my second monitor.

The docs says to use the SetCursorPos for "certain multi-monitor configurations" so you could try:

CoordMode, Mouse
!z::
BlockInput, MouseMove%pm%
If pm
	pm =
Else {
	pm = Off
	MouseGetPos, px, py
}
DllCall("SetCursorPos", "Int", pm ? A_ScreenWidth : px, "Int", pm ? A_ScreenHeight : py)
Return

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Leon
  • Members
  • 179 posts
  • Last active: May 22 2008 02:41 PM
  • Joined: 27 Aug 2007
@Laszlo, Titan
Thanks, they both work very well.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
@Laszlo: Thank you Sir. I am using this version :)

Cursor
  • Guests
  • Last active:
  • Joined: --
Hi! Is this app still being developed? It doesn't work on tablet pc! The cursr reappears again

Moonlapse
  • Members
  • 1 posts
  • Last active: Oct 11 2008 04:04 AM
  • Joined: 11 Oct 2008
Pardon, but how do I use this? Anyone mind going in depth?

Running the program does nothing.

syrwhizzy
  • Guests
  • Last active:
  • Joined: --
I love nomousy!

I think this feature was requested, but not sure if it was ever implemented.

Is there a way you could include a way to move the mouse "off screeen". I've got a Powerpoint in Kiosk mode that I want to "hide" the cursor. Nomousy will work great for that, but turning it back on to do maintanance on the computer will be dificult. I really just need to have the mouse cursor put all the way in one of the corners of the monitor, out of sight.

Thoughts?

Laszlo
  • Moderators
  • 4713 posts
  • Last active: Mar 31 2012 03:17 AM
  • Joined: 14 Feb 2005
Which one of the several scripts posted here did you try and what did not work?

corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004

I love nomousy!

Thanks :)

but turning it back on to do maintanance on the computer will be dificult.

Why?

Cursor
  • Guests
  • Last active:
  • Joined: --
corrupt, Laszlo:

On a tablet PC, where nomousy is needed most of all - it does not work.
In Pen mode cursor reapears again.

Thanks for a great tool, is it possible to fix it? thankx

Laszlo
  • Moderators
  • 4713 posts
  • Last active: Mar 31 2012 03:17 AM
  • Joined: 14 Feb 2005
I have no tablet PC to test on, but have you tried to repeatedly move the cursor off screen with a timer?

bitcloud
  • Members
  • 29 posts
  • Last active: Feb 20 2010 04:03 AM
  • Joined: 30 Oct 2008
Hey Guys,

The nomousy and the other script both work at hiding the arrow, but don't hide the cursor when it's a hand...

The other script which works (but not at hiding the hand):
#SingleInstance force

SystemCursor("Off")

OnExit, ShowCursor ; Ensure the cursor is made visible when the script exits.
return

ShowCursor:
SystemCursor("On")
ExitApp

#c::SystemCursor("Toggle") ; Win+C hotkey to toggle the cursor on and off.

SystemCursor(OnOff=1) ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
static AndMask, XorMask, $, h_cursor
,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
, b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13 ; blank cursors
, h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13 ; handles of default cursors
if (OnOff = "Init" or OnOff = "I" or $ = "") ; init when requested or at first call
{
$ = h ; active default cursors
VarSetCapacity( h_cursor,4444, 1 )
VarSetCapacity( AndMask, 32*4, 0xFF )
VarSetCapacity( XorMask, 32*4, 0 )
system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
StringSplit c, system_cursors, `,
Loop %c0%
{
h_cursor := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% )
h%A_Index% := DllCall( "CopyImage", "uint",h_cursor, "uint",2, "int",0, "int",0, "uint",0 )
b%A_Index% := DllCall("CreateCursor","uint",0, "int",0, "int",0
, "int",32, "int",32, "uint",&AndMask, "uint",&XorMask )
}
}
if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
$ = b ; use blank cursors
else
$ = h ; use the saved cursors

Loop %c0%
{
h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )
DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )
}
}

I would prefer to use the above script because it's a little more open source, but neither of these solutions hide the cursor when it's a hand symbol...

Does anyone have a solution or suggestions for this?

Cheers in advance...

Elim
  • Members
  • 1 posts
  • Last active: Apr 18 2009 10:15 PM
  • Joined: 17 Apr 2009
sorry for bumping this

but how do u use it?

ive opened it and nothing happens except appears in task manager how do i input the functions?????