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.

Find window + Lock mouse

If you have a question or need help, this is the place to be.
Post Reply
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Find window + Lock mouse

Post by themaster1 »

Here is what i wanna do:
- Find a specific window,ex: xbmc.exe (ideally the [fi]rontmost window[/i] but this don't do the job it seems)
- Lock the mouse onto this window (with an option to release it when needed)
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Re: Find window + Lock mouse

Post by themaster1 »

Pako? Anyone ?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Find window + Lock mouse

Post by Pako »

I do not use programs like XBMC. And that's why I probably do not understand what the benefits of lock mouse.
However, I used Google and I got these two results:
WMC 1.2.3.3
and
Cursor Lock
I think that especially with the second of these programs you can achieve the desired effect.

Pako
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Re: Find window + Lock mouse

Post by themaster1 »

I'll try these softs but it would be nice to have a built-in function in eventghost

Actually in eventghost i believe "Move mouse Absolute" would probably be good enough for what my needs if it could support Multi monitors but it doesn't as of now. Perhaps you could implement that soon ?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Find window + Lock mouse

Post by jonib »

Why do you need to lock the mouse to the XBMC window?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Find window + Lock mouse

Post by Pako »

themaster1 wrote:... for what my needs if it could support Multi monitors but it doesn't as of now.
That's not true. I think, that the action Mouse: Move Absolute supports multi-monitors configuration always.
For example, for the second monitor you have to adjust the coordinates X and Y to the size of the first monitor and the relative positions of the two monitors.
Something you can read about it:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://www.howtogeek.com/howto/14875/ma ... correctly/
http://www.flounder.com/virtual_screen_coordinates.htm
But it is true that I can add more comfort for the choice of monitor.
I do not know how soon it can be. I must borrow a monitor.

Pako
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Re: Find window + Lock mouse

Post by themaster1 »

If i tell you it doesn't support multi-monitors, i'm sure of what i'm saying, not making stuff up
themaster1
Experienced User
Posts: 133
Joined: Wed Feb 03, 2010 9:02 pm

Re: Find window + Lock mouse

Post by themaster1 »

jonib wrote:Why do you need to lock the mouse to the XBMC window?

jonib
If i'm in full screen there is no need the problem arise when i'm not in full screen.Imagine i have firefox on the 3/4 of the screen and xbmc as a small window on the upper left.
I switch back & forth monitors using ultramonitor option called "move mouse to next monitor" and it center the mouse in the middle of the screen
Moving the mouse is not even enough to gain control of an app i'm forced to use "left click mouse" in conjunction.

Obviously if i use the OSMenu no need to do al that, the problem is that the OsMenu is not that handy imo i would very much prefer a system where you find the window of your choice with a single button on the remote something that highlight the window and you have instant control.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Find window + Lock mouse

Post by jonib »

themaster1 wrote:If i tell you it doesn't support multi-monitors, i'm sure of what i'm saying, not making stuff up
On my Windows XP I'm able to move between my two screens. Maybe you are hitting a specific bug?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Find window + Lock mouse

Post by jonib »

themaster1 wrote:i would very much prefer a system where you find the window of your choice with a single button on the remote something that highlight the window and you have instant control.
Don't Find Window and Bring to front work for you? That's what I use and they work great.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Find window + Lock mouse

Post by Livin »

Pako wrote:
themaster1 wrote:... for what my needs if it could support Multi monitors but it doesn't as of now.
That's not true. I think, that the action Mouse: Move Absolute supports multi-monitors configuration always.
For example, for the second monitor you have to adjust the coordinates X and Y to the size of the first monitor and the relative positions of the two monitors.
Something you can read about it:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://www.howtogeek.com/howto/14875/ma ... correctly/
http://www.flounder.com/virtual_screen_coordinates.htm
But it is true that I can add more comfort for the choice of monitor.
I do not know how soon it can be. I must borrow a monitor.

Pako
Pako... if you update the plugin please consider making a few additions...

A) detecting the screen resolutions of all screens and display the resolutions with screen #s in the plugin window - for reference.
B) ability to select 'center' as an option... thus, the plugin auto detects what the center coordinates are for each screen (requires A, I think)
C) today, when a display is turned off, the plugin will not show it in the drop-down box. Is it possible to always allow it to display after the first time it is detected?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Post Reply