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.

Emulating a variable key

If you have a question or need help, this is the place to be.
Post Reply
Preformer
Posts: 16
Joined: Tue Aug 09, 2016 3:31 pm

Emulating a variable key

Post by Preformer »

I am using Autoremote to automate my Laptop from Mobile, and I was trying to make a remote keyboard. Tried this:
Image
Where 'arcomm' is "Up" (without the quotes). I get this error in the log:
Image
Help appreciated.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Emulating a variable key

Post by Sem;colon »

Use a python command or script action instead with this code:

Code: Select all

eg.plugins.Window.SendKeys(eg.event.payload.arcomm, False, 2) 
If you like my work, Image me a drink :wink:
Preformer
Posts: 16
Joined: Tue Aug 09, 2016 3:31 pm

Re: Emulating a variable key

Post by Preformer »

It works! How do I send special keys like the arrows keys, tab, etc?
Edit: Found it. You have to send the keys in the function without other parameters, like Windows.SendKeys({Up}).
Thank you very much for help, guys!
Post Reply