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.

virtual remote application

If you have a question or need help, this is the place to be.
Post Reply
dbbd
Posts: 33
Joined: Sat Apr 26, 2008 2:10 pm

virtual remote application

Post by dbbd »

Using TCP receiver and sender, I was able to create a macro
triggered by a keyboard event, that sends a TCP event to a remote system
EG, which then performs some action.

Now I'd like some front end windows application, that presents a remote, whose
buttons can be clicked or keyboard in. This app will generate the local EG events that will
be sent to the remote system.

Does anything like that exist already?
Thanks,
Dan
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: virtual remote application

Post by topix »

Have a look at the plugin "DesktopRemote". Maybe that's what you looking for.

Here is a short example how to use it:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1487">
    <Folder Name="OSR - Desktop-RC" Expanded="True">
        <Macro Name="Desktop Remote: Create New Remote">
            <Action>
                DesktopRemote.CreateNew(70, 30, 3, 3, 4, (128, 128, 128), (255, 255, 255), (78, 78, 78), u'0;-13;0;0;0;700;0;0;0;0;3;2;1;34;Arial', u'Remote Control', 1, True, True, True)
            </Action>
            <Action>
                DesktopRemote.AddButton({'width': 40, 'height': 30, 'event': u'1', 'label': u'1'})
            </Action>
            <Action>
                DesktopRemote.AddButton({'width': 40, 'label': u'2', 'event': u'2', 'height': 30})
            </Action>
            <Action>
                DesktopRemote.AddButton({'width': 40, 'label': u'3', 'event': u'3', 'height': 30})
            </Action>
            <Action>
                DesktopRemote.StartNewLine(0)
            </Action>
            <Action>
                DesktopRemote.AddButton({'event': u'Esc', 'label': u'Esc'})
            </Action>
            <Action>
                DesktopRemote.StartNewLine(0)
            </Action>
            <Action>
                DesktopRemote.Show(10, 10, True)
            </Action>
        </Macro>
        <Macro Name="Desktop Remote: Close" Expanded="True">
            <Event Name="DesktopRemote.Esc" />
            <Action>
                DesktopRemote.Close()
            </Action>
        </Macro>
    </Folder>
</EventGhost>
dbbd
Posts: 33
Joined: Sat Apr 26, 2008 2:10 pm

Re: virtual remote application

Post by dbbd »

topix wrote:Have a look at the plugin "DesktopRemote". Maybe that's what you looking for.

<Action>
DesktopRemote.AddButton({'event': u'Esc', 'label': u'Esc'})
</Action>

</EventGhost>[/code]
Excellent! exatly what I need. Now, what do I enter as "events"?
Your example looks like the event is to issue a keyboard key. Can I send any EG macro (or rather an action)?
I'd like to send NetworkSender.Map(u'some string') events, but the syntax to use is not clear to me.

Thanks,
Dan
dbbd
Posts: 33
Joined: Sat Apr 26, 2008 2:10 pm

Re: virtual remote application

Post by dbbd »

Ahh, now I get it.
Buttons just send events, (any string). Then you use these events in other macros with the actions you want.
Somewhat twisted, but it works ;-)

Dan
Post Reply