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?
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.
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.
Moving Window / Opening App -- on a secondary display?
Moving Window / Opening App -- on a secondary display?
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
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Moving Window / Opening App -- on a secondary display?
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
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 191 times
Re: Moving Window / Opening App -- on a secondary display?
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...
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 TaskletExitsetup... 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
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Moving Window / Opening App -- on a secondary display?
I'm sorry. When I tried it, I've never not add a new action.
Try a corrected version:Pako
Try a corrected version:Pako
Re: Moving Window / Opening App -- on a secondary display?
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.
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