Posts: 318
Joined: Jan 2008
Reputation:
0
Is there a way using keyboard.xml to create a multiple button "code" to do something such as restart XBMC, open a folder, etc.?
So, if I press "1,2,3,4" on my remote (or whatever code I select), it'll reboot my PC...
If not within XBMC itself, is this something a skinner could implement?
Thanks
Posts: 7,256
Joined: Nov 2008
Reputation:
121
There's no simple way to do this.
XBMC doesn't remember the keyboard state, so each keypress is treated independantly without looking at any previous keypresses. It might be possible to come up with some cunning scheme involving Python scripts ...
JR
Posts: 119
Joined: Oct 2011
Reputation:
3
EVENTGHOST using keyboard plugin....
Map as many as you want to a single function
or one key for multiple function...
enjoy
Posts: 777
Joined: Feb 2007
Reputation:
5
the way I have mine (using the ps3 remote) I have a "if button is held for x seconds go to macro" and it activates a macro. I have one for restart (yellow) and shut down (blue).
Buttons have a primary action along with the hold down action. Eventghost is one great app!
HTPC: Motherboard: Asus F2A85-V, CPU: AMD A10 6800K, RAM: Kingston XMP BEAST 16GB, Samsung 840 EVO 250GB, LG CH12NS30 Blu-Ray drive, Samsung, and WD various 2 and 3TB for storage, Windows 8.1, one for all remote/FLIRC, Logitech z906 surround system.
Posts: 777
Joined: Feb 2007
Reputation:
5
Always fun to have something to mess with :-) the app is great, you can do a ton of things with it.
HTPC: Motherboard: Asus F2A85-V, CPU: AMD A10 6800K, RAM: Kingston XMP BEAST 16GB, Samsung 840 EVO 250GB, LG CH12NS30 Blu-Ray drive, Samsung, and WD various 2 and 3TB for storage, Windows 8.1, one for all remote/FLIRC, Logitech z906 surround system.
Posts: 119
Joined: Oct 2011
Reputation:
3
2011-11-30, 23:09
(This post was last modified: 2011-11-30, 23:11 by XMBC_FREAK.)
I agree Eventghost is a huge part of my setup.
Eventghost should be a must install for windows XBMC since its used so much. It's interesting at first to figure out but its easy once you got it. The ability of this app is almost endless I find myself thinking what else I can automate or build, lol I am a geeky greek what can I say.
Posts: 119
Joined: Oct 2011
Reputation:
3
2011-12-02, 20:13
(This post was last modified: 2011-12-02, 21:01 by XMBC_FREAK.)
If I could lend you a hand I will.
EventGhost is massive hope this helps you.
EventGhost QuickGuide
Plugins - Plugins are either what you want to control or what you are using for controlling.
Example If I want to use a keyboard to control XBMC I would add the keyboard plugin and the XBMC plugin.
Macros - Macros are the folder where all the event and actions you want to create are placed. You can set multiple events and actions within the folder.
Events - Events are basically a created human input function but it can be other inputs as well
Example of event would be a keyboard input of "1"
Actions - This is what you want Eventghost to do for you.
Example would be the action will wait for the event to happen then carry out the function in this case "play" XBMC.
I know its a rough tutorial but its the essence of setting up something in eventghost
Posts: 119
Joined: Oct 2011
Reputation:
3
2011-12-02, 20:58
(This post was last modified: 2011-12-02, 21:00 by XMBC_FREAK.)
win automation can record keystrokes and replay them in a self executable which eventghost can run as an exe when a button is pressed.
Posts: 318
Joined: Jan 2008
Reputation:
0
Tried WinAutomation! Took some time, but figured it out!! THANKS!
Posts: 777
Joined: Feb 2007
Reputation:
5
Another way would be to (if there is one) find out the keyboard command for that function, set up a macro to emulate keyboard strokes with your button press, plus use the find window bit so it will only use that command with that app.
HTPC: Motherboard: Asus F2A85-V, CPU: AMD A10 6800K, RAM: Kingston XMP BEAST 16GB, Samsung 840 EVO 250GB, LG CH12NS30 Blu-Ray drive, Samsung, and WD various 2 and 3TB for storage, Windows 8.1, one for all remote/FLIRC, Logitech z906 surround system.
Posts: 777
Joined: Feb 2007
Reputation:
5
As I said "Another way would be to (if there is one)" I didn't suggest that your suggestion was far off at all.
Besides that, he said command line features, which isn't keyboard commands (such as alt+e etc).
So yeah, calm down and actually read the full post before you start getting angry, lol.
Edit: and to bring up other threads to extend even your other argument is really silly.
HTPC: Motherboard: Asus F2A85-V, CPU: AMD A10 6800K, RAM: Kingston XMP BEAST 16GB, Samsung 840 EVO 250GB, LG CH12NS30 Blu-Ray drive, Samsung, and WD various 2 and 3TB for storage, Windows 8.1, one for all remote/FLIRC, Logitech z906 surround system.