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.

Macro not working when keyboard emulation after kb shortcut

If you have a question or need help, this is the place to be.
Post Reply
nathan323
Posts: 9
Joined: Fri Aug 05, 2016 4:19 am

Macro not working when keyboard emulation after kb shortcut

Post by nathan323 »

It seems like I cant create a macro that contains a keyboard shortcut for an Event, then a Keyboard Emulation action./ Is this normal behaviour?
I am newish to prog.

The macro works fine if I Execute Item from right-click menu in Eventghost, but if add keyboard shortcut as an Event and trigger that way, it carries out every Action except the Keyboard Emulation.

This is my code:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Find Window: vlc.exe" Expanded="True">
        <Event Name="Keyboard.Shift+Ctrl+U" />
        <Action>
            Window.FindWindow(u'vlc.exe', None, u'QWidget', None, None, None, False, 0.0, 0)
        </Action>
        <Action>
            Window.SendKeys(u'n', False, 2)
        </Action>
    </Macro>
</EventGhost>
Any help would be much appreciated.
Program Version: 0.4.1.r1722
Build Time: Wed, 03 Feb 2016 08:20:52
Python Version: Stackless Python 2.6.5 final 0
wxPython Version: 2.8.12.1

Windows 7 Home Premium SP1, 64-bit (build 7601)
CPU: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz
RAM: 4091 MB
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Macro not working when keyboard emulation after kb short

Post by blaher »

Keyboard emulation is broken for me too, (both methods), in Windows 10.
EG .1722
Keyboard plugin version = "1.1.1",

Edit: You need to run EventGhost as an admin.

viewtopic.php?f=4&t=8254&p=41324#p41146 for details.
Post Reply