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.

keyboard simulator plugin?

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

keyboard simulator plugin?

Post by Fiasco »

I saw the keyboard plugin to trap keypresses from making it to the OS.

Is there a keyboard plugin that will translate events from my iphone remote app to keypresses?

I've got my keyboard made and mapped and the events are appearing in EventGhost (HTTP.F or HTTP.G for example). How can I translate HTTP.G to a press of the G key?
photo.jpg
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: keyboard simulator plugin?

Post by jinxdone »

This is a default feature of EG. You can find it in Actions -> Window -> Emulate Keystrokes. If you don't target anything with the find window action before emulating the keypress it will go to the focused window as usual.

I'd suggest you change the event name you are triggering to for example HTTP.sendkey, and set the payload to what you want to emulate (so your links will be like "http://eghost:port/?sendkey&A" and so on). Then make a macro you trigger with "HTTP.sendkey" and inside put an emulate keypress action with "{eg.event.payload[0]}" as the string to emulate. This way you only need one macro as it emulates whatever was as the event payload value.

Try this quick example and you will understand what I mean: (copy&paste into EG)

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="918">
    <Macro Name="Example" Expanded="True">
        <Event Name="HTTP.sendkey" />
        <Action>
            EventGhost.ShowOSD(u'{eg.event.payload[0]}', 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>
</EventGhost>
-jinxdone
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: keyboard simulator plugin?

Post by Fiasco »

Works like a champ.

Only question remaining is how do I trigger special keys like Backspace or Enter?

edit... found answer... enclose special keys in curly braces {enter} {back} ect.

Thanks!
Post Reply