Ok the Task.Destroyed event most of the time is not called so I can't switch to mouse exclusive with the task.destroyed so I tried this below but the jump conditional does not seem to be working. If the FindWindow was successful than it's suppose to recall the Media Player mode to make sure it's enabled.. but if unsuccessful than it's suppose to finish the macro which the next command is suppose to enable exclusive for mouse control.
I tried using a Jump command but that is not working right either.. on unsuccessful I told it to jump but it always jumps no matter what Find Windows find.. is this bugs with EventGhost since jump does not seem to be reading if successful or not from Find Windows? If so how is Jump suppose to be used if not the method I am trying to get to work? problem is if I have more than one Media Player Classic playing and close one than the Task.Closed event is called which triggers mouse exclusive mode.. but since jump does not appear to be reading successful or not from Find Windows I can't get it to jump properly.
And last of all I am sure their is a better and more functional Python Script to do it but I sure can't figure out the script I keep getting errors in my script that I have tried I just don't know the proper commands.
Switch to mode: Mouse Emulation
triggered on Task.ClosedWindow.mpc-hc
Find Window
Jump (#jumps back to Switch to mode: Media Player Classic)
Enable Exclusivee Mouse Mode
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.
Problem with Jump and Find Window Actions
Re: Problem with Jump and Find Window Actions
It works fine here. 0.3.7r1394. Example with finding winamp..
Maybe you missed the 'stop macro if target is not found' in the Find Window's config dialog?
-jinxdone
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
<Folder Name="Run if window not found" Expanded="True">
<Macro Name="Find Window: Winamp">
<Action>
Window.FindWindow(u'winamp.exe', None, None, None, None, 1, False, 0.0, 2)
</Action>
<Action>
EventGhost.NewJumpIf(XmlIdLink(2485), 1, False)
</Action>
</Macro>
<Macro Name="Show OSD: This is run if window is not found" id="2485">
<Action>
EventGhost.ShowOSD(u'This is run if window is not found', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False)
</Action>
</Macro>
</Folder>
</EventGhost>-jinxdone