Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

How to hide the mouse?

If you have a question or need help, this is the place to be.
Post Reply
lovingHDTV
Posts: 1
Joined: Tue Mar 03, 2009 12:48 am

How to hide the mouse?

Post by lovingHDTV »

Is there a way to hide the mouse cursor? When I play PDVD it shows the mouse pointer every time you execute a command. I'd like to hide it when PDVD is running.

Can I do this?

thanks,
dave
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: How to hide the mouse?

Post by CollinR »

I dunno how to hide it but you might try moving to absolute 0,0 which should have it off screen.
Windows XP Pro sp3 - Several Machines usually latest beta but who knows.
Inputs: TCP / IR (USBUIRT) / RF(X10 Remote) / CLI-Batch / CCTV Motion / Ocelot
Outputs: TCP / IR (USBUIRT) / SageTV / SageTV Clients / YAC CallerID / HAL v3.7.3 / Ocelot
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: How to hide the mouse?

Post by jinxdone »

Well actually 0,0 is the upper left corner but if your using a resolution of 1900x1280 for example then 0,1280 or 1900x1280 are probably better choices (absolute bottom left or right pixel)
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: How to hide the mouse?

Post by jsonnabend »

That's a good tip. Thanks for that.

Now, how about a companion macro to center the mouse on the screen? That should be very easy, but we need to know the screen resolution to calculate the center. Is there any way to get that info?

- Jeff

[edit]
Ok, nevermind, here's a quick and dirty script:

Code: Select all

from win32api import GetSystemMetrics
width = GetSystemMetrics (0)
height =GetSystemMetrics (1)
print "resolution " + str(width) + " x " + str(height)
eg.plugins.Mouse.MoveAbsolute(int(width/2), int(height/2))
[/edit]
Post Reply