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.

Restoring cmd-window from system tray

Found a bug in EventGhost? Report it here.
Post Reply
Samme
Posts: 33
Joined: Tue Nov 22, 2011 9:07 am

Restoring cmd-window from system tray

Post by Samme »

Hi, I have found, what I think is a bug!

I'm running EventGhost 0.4.1.r1691 on Windows 8.1

I have two macros, the ones below! What they do, the first one opens a squeezelite-win.exe and puts in the system tray, works good.

The second one restores it and this is where the "bad things" happen, it restores the window fine and closes the cmd, in my case squeezelite, however, the icon in the system tray is still being shown and if I click it, Eventghost crashes.


<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1691">
<Macro Name="Start" Expanded="True">
<Action Enabled="False">
System.Execute(u'C:\\Users\\Pierre\\Documents\\Eventghost\\Programs\\Squeezelite\\squeezelite-win.exe', u'', 1, False, 2, u'', False, False, u'', False, False, False)
</Action>
<Action>
EventGhost.Wait(0.5)
</Action>
<Action>
Window.FindWindow(u'squeezelite-win.exe', None, None, None, None, None, False, 0.0, 0)
</Action>
<Action>
Window.MinimizeToTray()
</Action>
</Macro>
</EventGhost>
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1691">
<Macro Name="Exit" Expanded="True">
<Action>
Window.FindWindow(u'squeezelite-win.exe', None, None, None, None, None, True, 0.0, 0)
</Action>
<Action>
EventGhost.Wait(1.0)
</Action>
<Action>
Window.BringToFront()
</Action>
<Action>
Window.SendKeys(u'{Ctrl+C}', False)
</Action>
</Macro>
</EventGhost>
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Restoring cmd-window from system tray

Post by Pako »

=> 0.4.1.r1694
Post Reply