In the future EG will get an object that can be configured to the keys the user wants, but currently some scripting is needed.
First you need access to the plugin-object you want to modify. This is simply done through a script that is just directly behind the plugin in the autostart macro. Every plugin will set the variable "result" to itself everytime it is "executed" and you can catch this value with a script directly afterwards. In this script you do something like this:
- Code: Select all
plugin = eg.result
plugin.Map("412F52F040F1", "Enter")
plugin.Map("4344143C50B1", "Enter")
plugin.Map("412F523450F1", "Down")
plugin.Map("4342416789B1", "Down")
...
So you map two event-codes (without the plugin prefix) to one textual event of your choice. Do this for all keys you need.
You can also fine-tune the repeat time of your remote, to get better "ButtonReleased" handling. Just add the timeout in seconds as a third parameter like:
- Code: Select all
plugin = eg.result
plugin.Map("412F52F040F1", "Enter", 0.12)
plugin.Map("4344143C50B1", "Enter", 0.12)
...
Or to be able to modify it more globally, you can of course also do:
- Code: Select all
plugin = eg.result
timeout = 0.12
plugin.Map("412F52F040F1", "Enter", timeout)
plugin.Map("4344143C50B1", "Enter", timeout)
...
Now you have to do one of the following to get the script doing its job:
1. restart EG
2. execute the autostart macro manually
3. execute the plugin-item manually and directly after that this script