Search found 38 matches

by cvben
Mon Jan 01, 2018 6:47 am
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Re: Is there a better way to do this? (a bit long of a read)

eg.event.payload.armessage: u'play test radio' eg.event.payload.arpar: [u'play', u'test', u'radio'] AutoRemote.Message.play u'play test radio' Python Script Python Script arcomm: armessage: play test radio arpar: [u'play', u'test', u'radio'] files: [] messageObj: Traceback (most recent call last): ...
by cvben
Mon Jan 01, 2018 1:33 am
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Re: Is there a better way to do this? (a bit long of a read)

I'll have a look at your 2nd example a bit more tomorrow, I really appreciate the help and the work you put in.

Edit: Actually I took the few seconds reading it actually required and I like it. Good stuff
by cvben
Mon Jan 01, 2018 1:29 am
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Re: Is there a better way to do this? (a bit long of a read)

Result from the first bit of script you posted: ['GetDescription', '__doc__', '__init__', '__module__', '__repr__', '__str__', 'arcomm', 'armessage', 'arpar', 'files', 'messageObj', 'plugin', 'sender'] Traceback (most recent call last): Python script "22", line 3, in <module> print eg.event.payload....
by cvben
Sun Dec 31, 2017 8:10 pm
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Re: Is there a better way to do this? (a bit long of a read)

As I feared my regex is lacking and I've hit a dead end

I get: SyntaxError: EOL while scanning string literal (21, line 3)

from code:

Code: Select all

import re

phrase_eval = re.search('(?<command>play)(?<genre>.+) radio')', eg.event.payload.armessage)

print(phrase_eval)
by cvben
Sun Dec 31, 2017 6:08 pm
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Re: Is there a better way to do this? (a bit long of a read)

I actually thought about this very question being asked, then I forgot So much for trying to be thorough.. :) https://i.imgur.com/1c5Qldt.png Above is what you are looking for. From what I know of the process is that the overarching message is ideally sent as a payload "armessage" referring to the o...
by cvben
Sun Dec 31, 2017 4:05 am
Forum: General Support
Topic: Is there a better way to do this? (a bit long of a read)
Replies: 16
Views: 3615

Is there a better way to do this? (a bit long of a read)

Again a bit long winded, but here it goes... EG 0.5.0-rc4 Windows 10 Basically I am using Autovoice (see android/tasker) to send my pc commands through Join (new Autoremote if anyone knows either). Join is just a bridge that sends variables to the pc which triggers handy little events in Eventghost....
by cvben
Sun Sep 03, 2017 8:54 pm
Forum: General Support
Topic: Virtual Key detection Help (AutoHotkey)
Replies: 1
Views: 1447

Virtual Key detection Help (AutoHotkey)

What I am wondering is whether or not it is possible to get the keyboard plugin to detect AHK sent keys. When I perform a regular keystroke (ie on the physical keyboard) whatever key i press is obviously detected. However when I send a key or key combo through AHK Eventghost might see the shortcut, ...
by cvben
Tue Jul 11, 2017 10:38 pm
Forum: Plugin Support
Topic: Chrome browser
Replies: 5
Views: 4149

Re: Chrome browser

Is this extension deprecated?