Hi all! For those using Kodi Media Center and the Soundgraph Imon Pad remote, I have prepared some files for you.
All these files are in the DreamCraft_Kodi_Imon.rar file.
Configuration files explained
– The Kodi.imo file is the Imon setting file for Kodi. Put it in “C:\Users\%username%\AppData\Roaming\SOUNDGRAPH\iMON\Setup\iMON PAD\” .
– The gen.xml file is for the Keymap Editor addon for Kodi. Put it in “C:\Users\%username%\AppData\Roaming\Kodi\userdata\keymaps\” .
– The gen.xml.backup file. Also put it in “C:\Users\%username%\AppData\Roaming\Kodi\userdata\keymaps\”. Read below on how and why using this file.
– The kodistart folder can be placed in “C:\Users\%username%\AppData\Roaming\SOUNDGRAPH\iMON”. Read below on how and why using this file folder.
Important note : the *.imo file might not work right away. You may need to import this file instead of just copying it. How to import : first, copy the *.imo file in another folder. Start Kodi, then Imon Manager > settings > program commands > add program button > select Kodi > click the import button > browse to the folder where you put the *.imo file > choose the option to import ALL functions > apply and close. Then test it!
- 150209 : one single keyboard shortcut and remote button for both video and music “now playing” playlists.
- 150214 : keyboard shortcuts and remote buttons attributed for the Movies window and the DVD menu.
- 150310 : T9 keyboard on the numeric buttons have been added to the latest versions of the files inside the RAR file.
- 150425 : added support for the colored buttons to start Kodi then automatically display the video, movie, music and picture screens.
- 160229 : The music button now leads to the Music Library (not anymore to the music files).
- These files are works in progress.
- Feel free to contact me for questions and suggestions.
- I’ll update this page when there are new versions of these files.
- I don’t use Kodi to Watch TV so this isn’t supported here.
- More detailed notes below…
Imon program commands for Kodi described
Here is the list of commands with their keyboard shortcuts (set up in Kodi via Keymap Editor and its gen.xml file) and their remote buttons.
Why using a backup file
The gen.xml.backup file is the same as the gen.xml file, but it’s a backup in case you use the Keymap Editor addon. Indeed, saving your Keymap Editor options always alters the gen.xml file. But often puts in bad code, especially when you’re using modifyers, like ALT, SHIFT or CTRL. So:
- Each time you manually modifiy gen.xml, save it as gen.xml.backup.
- Each time you want to use the Keymap Editor addon, first save gen.xml as gen.xml.backup.
Getting the T9 keyboard to work
It was very tricky to get the T9 keyboard to work on the Imon Pad remote with Kodi. With Windows Media Center (win7), it works out of the box, but with Kodi: what a headache! So here’s what I did:
- Follow the instructions on this Kodi WIKI page. At first this page was unappropriate for Imon and Keymap Editor users, but since March 2015 I have become a authorized Kodi Wiki editor (yeah!) so I edited this article to make the information available to all!
- in this article, as you can see, I used the Keymap Editor addon to note which key code Kodi gets when typing the keys from the second row of my keyboard. But before doing so, don’t forget to protect your original gen.xml file by saving a backup, as explained above in this blog post.
- In the edited Kodi Wiki page, I’m saying I have not tried to press the remote buttons to get them recorded by Keymap Editor. If anyone has tried it, please comment below on your experience: does it work well?
- After editing the gen.xml file, I got a fully working numeric pad on my remote. So I included it inside the RAR file. But perhaps your system is different than mine and you’ll get different key-codes. But at least you’ve got the method explained here 🙂
Some forum threads about this affair:
On the Imon Ipad, there are 5 colored buttons that are used to launch media center programs and get them to automatically display specific screens : videos, music, pictures, TV and DVD. If you use my files, you can enjoy these quick access buttons: start Kodi, and then, once it is running, press one of the buttons.
But unfortunately, by default, the buttons are not not working at all while Kodi is not yet running. Let me explain: the goal here is to press a colored button in order to start Kodi and then to automatically display a screen such as “video files” or “music library”, etc. As I said before, everything was more simple when I was using Windows Media Center. Kodi is a better choice for a media center app, but making Kodi work with the Imon Pad remote is much more complicated. Imon manager kind of “recognizes” Windows Media Center and sends the right commands to start it then display button-chosen screens. But it’s not the case with Kodi.
The only way to do it is to create a script that starts Kodi, and makes it display the right screen. For Scripting, I was advised to use Autohotkey, but I prefer to use the native Windows solution Powershell. So I created 4 scripts for video, music, pictures and Dvd. My “start video” script is called “button_videos.ps1”. Here is what it does:
- Launch Kodi
- Wait 15 seconds. On my system, Kodi starts very slowly, I don’t know why. If your Kodi starts faster, change the value.
- Activate Kodi’s window, in case it does not have the focus.
- Send keyboard strokes to Kodi: ALT+V. These are the same shorcuts that were set up in the Keymap Editor addon for Kodi.
To get these scripts running, you don’t need to master Scripting. But in any case, you’ll need to change the PowerShell security level : start the Powershell console and type in :
Ps1 files aren’t executable: when one click on them, they do not run, they get opened in a text or script editor. To get these scripts running without starting Windows Powershell beforehand (which is what we need for Imon Manager), we need to create a small batch file that will run the ps1 file. So I added 4 *.bat file that just start the 4 ps1 files. Here is the content of launch_button_videos_ps1.bat :
powershell "& ""C:\Users\David\AppData\Roaming\SOUNDGRAPH\iMON\kodistart\button_videos.ps1"""
Important: you’ll need to edit these files in order to make them work. The path works in my system, but won’t work in yours… unless you’re called David too! 🙂 Edit the path by putting your Windows user name. You can also change some other options if you need.
And there are 2 last steps for Imon manager: create Windows shorcuts for the *.bat files and assign them. It would be very handy to assign a bat file to a colored button, but unfortunately, Imon Manager can’t start an app, unless one uses the big central green/blue button or the App Launcher button. The colored buttons need to be assigned to some general Windows keyboard shortcut that will launch some programs, and these programs are chosen in Windows shortcut files.
First we need to create several Windows shortcut files for each of the bat files. Let’s take as example the file video launch_button_videos_ps1.bat. Using the mouse’s right button, drag and drop it from :
C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\[subfolders if any]\Kodi .
At the button release, choose “create shortcut here”. Then edit the shortcut. The keyboard shortcut I chose for this *.bat file is CTRL+ALT+V. In Windows 8.x, just type “V” and Windows will add “CTRL+ALT” before, as it is the default keyboard combination for shortcut files.
Then, in Imon, go to settings > custom commands > function > add, and set this function up to match the keyboard shortcut in the Windows shortcut file, also assigning it to the “my video” button.
Repeat the steps for each *.bat file. My shortcuts :
That’s it, at last. Now you can test it : when you press one of the colored button, a CMD window should appear, then Kodi starts and goes to the requested screen.
Note : as of today, I still don’t know how to start disc playback from a keyboard shortcut in Kodi, so in the meantime, the “My DVD” button leads to the movie Library in Kodi.