Moving Window / Opening App -- on a secondary display?

If you have a question or need help, this is the place to be.

Moving Window / Opening App -- on a secondary display?

Postby Livin » Tue Aug 31, 2010 7:19 pm

I'd love for EG to force an app/window to move to or open on a specific display.

Anyone done this or know how to?
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Moving Window / Opening App -- on a secondary display?

Postby Pako » Sun Sep 05, 2010 6:49 am

Into action Window - Move Absolute I added the ability to change the monitor.
I hope it works as expected.
Place the attached file into the directory ...\plugins\Window.
If it turns out that the improvements are worth, I will put the file into the SVN repository.
Pako
Attachments
__init__.py
Plugin Window - added option to change display.
(13.12 KiB) Downloaded 67 times
User avatar
Pako
Plugin Developer
 
Posts: 1282
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Moving Window / Opening App -- on a secondary display?

Postby Livin » Sun Oct 03, 2010 4:01 pm

I do not see a way to config it to tell it which display to send it to?

Also, when I add the Action it throws these errors...

Code: Select all
8:59:46 AM   Traceback (most recent call last):
8:59:46 AM     File "EventGhost.pyw", line 31, in <module>
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 101, in Main
8:59:46 AM       eg.Tasklet(eg.app.MainLoop)().run()
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
8:59:46 AM       self.Configure(*args, **kwargs)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 126, in Configure
8:59:46 AM       self.item.Configure(*args)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 107, in Configure
8:59:46 AM       return self.executable.Configure(*args)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\plugins\Window\__init__.py", line 162, in Configure
8:59:46 AM       displayChoice = eg.DisplayChoice(panel, displayNumber)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\DisplayChoice.py", line 35, in __init__
8:59:46 AM       eg.Choice.__init__(self, parent, value, choices=choices, *args, **kwargs)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\Choice.py", line 41, in __init__
8:59:46 AM       self.SetValue(value)
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\Choice.py", line 45, in SetValue
8:59:46 AM       self.SetSelection(value)
8:59:46 AM     File "wx\_core.pyc", line 11931, in SetSelection
8:59:46 AM   TypeError: in method 'ItemContainer_SetSelection', expected argument 2 of type 'int'
8:59:46 AM   Traceback (most recent call last):
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
8:59:46 AM       func()
8:59:46 AM     File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 176, in Wrapper
8:59:46 AM       eg.Tasklet(func)(*args, **kwargs).run()
8:59:46 AM   TaskletExit
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Moving Window / Opening App -- on a secondary display?

Postby Pako » Sun Oct 03, 2010 5:28 pm

I'm sorry. When I tried it, I've never not add a new action.
Try a corrected version:
__init__.py
Plugin Window - corrected version.
(13.19 KiB) Downloaded 72 times
Pako
Attachments
MoveAbsolute.jpg
User avatar
Pako
Plugin Developer
 
Posts: 1282
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Moving Window / Opening App -- on a secondary display?

Postby Livin » Sat Oct 16, 2010 6:14 am

Did some testing... so far so good. I'm using it exclusively now and have removed the 3rd party app I was using so if anything changes I'll let you know.

What would be a nice is to combine this into FindWindow.

IMO all Window manipulations/functions (open, close, move, etc) should simply be in one Action - "find" is always required for all of them anyway - even open as in most cases (not all) you do not want to open the same app twice.
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am


Return to General Support

Who is online

Users browsing this forum: Google [Bot] and 4 guests