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.

Move Window - Monitor not found.

If you have a question or need help, this is the place to be.
Post Reply
dm1988
Posts: 2
Joined: Wed Oct 12, 2011 8:37 pm

Move Window - Monitor not found.

Post by dm1988 »

Hello!

I'm using EG for a short time now and i'm amazed about what can be done with it!

I use it in combination with a Logitech harmony One and a RC6 Dongle.
My OS is Windows 7 Ultimate SP1. I use the lated EG version 0.4.1.r1540 and enabled the "Autostart with Windows"-Option

I made a macro which should extend the Scrren to my Second Monitor, start VLC Player (using VLC Plugin) move it to the second screen and maximize the vlc window.

Works perfect if i start Windows with extended Monitors.
Starting EG without the second Monitor being activated, makes it impossible to use the second monitor in any Command until i activate it and restart EG.
Is this a problem that can be fixed anyhow?

These are my macros:

Code: Select all

<Macro Name="VLC starten" Expanded="True">
        <Event Name="MceRemote.Mce.Videos" />
        <Action>
            EventGhost.TriggerEvent(u'ExtendMonitor', 0.0)
        </Action>
        <Action>
            EventGhost.Wait(1.0)
        </Action>
        <Action>
            VLC.Start(u'')
        </Action>
        <Action>
            Window.FindWindow(u'vlc.exe', u'VLC media player', u'QWidget', None, None, None, False, 3.0, 0)
        </Action>
        <Action>
            EventGhost.ShowOSD(u'Fenster gefunden', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 4, (0, 0), 0, 3.0, False)
        </Action>
        <Action>
            Window.MoveTo(0, 0, 1)
        </Action>
        <Action>
            Window.Maximize()
        </Action>
        <Action Name="Strg + O">
            Window.SendKeys(u'{ctrl_O}', False)
        </Action>
        <Action Name="Shift + Tab">
            Window.SendKeys(u'{Shift+Tabulator}', False)
        </Action>
        <Action>
            Window.FindWindow(u'vlc.exe', u'W\xe4hlen Sie eine oder mehrere Dateien zum \xd6ffnen', u'#32770', None, None, None, False, 0.0, 0)
        </Action>
    </Macro>
<Macro Name="Monitor erweitern">
        <Event Name="ExtendMonitor" />
        <Action Name="Monitor erweitern">
            System.Execute(u'E:\\Windows\\System32\\DisplaySwitch.exe', u'/extend', 3, False, 2, u'', False)
        </Action>
    </Macro>
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: Move Window - Monitor not found.

Post by vuego »

You could still use Move Absolute and select your primary monitor (I assume it is monitor #1). Then move VLC to X = -1920 (depending on your resolution) if you second monitor is to the left or X = 1921 if it's to the right :)
dm1988
Posts: 2
Joined: Wed Oct 12, 2011 8:37 pm

Re: Move Window - Monitor not found.

Post by dm1988 »

vuego wrote:You could still use Move Absolute and select your primary monitor (I assume it is monitor #1). Then move VLC to X = -1920 (depending on your resolution) if you second monitor is to the left or X = 1921 if it's to the right :)
Works like a charm! Thanks a lot! :D
Post Reply