Hi all! For those using Kodi Media Center and the Soundgraph Imon Pad remote, I have prepared some files for you.
- 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.
- 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).
- 180205 : Fixed the video and music button which were not working in Kodi 17. Updated the picture describing Imon’s Kodi options. Added my PowerDVD imo file inside the RAR file.
- 180528 : Updated the scripts for the color buttons.
What to do first
– Download : All these files are in the DreamCraft_Kodi_Imon.rar file.
– Install Kodi’s latest version.
– Install Kodi’s addon “Keymap Editor”.
– In the rar file, you will find the gen.xml file. It is for the Keymap Editor addon for Kodi.
If you are using the “non UWP” version of Kodi, put it in “C:\Users\%username%\AppData\Roaming\Kodi\userdata\keymaps\” .
If you are using the UWP version of Kodi, put it in “C:\Users\ %username% \AppData\Local\Packages\ XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\userdata\keymaps\” .
– In the rar file, you will find the gen.xml.backup file. Also put it in “C:\Users\%username%\AppData\Roaming\Kodi\userdata\keymaps\”.
. Read below, in the “Why using a backup file” section, on how and why using this file.
. Caution: in this folder, keep only one file with the XML extension, otherwise, it will confuse Kodi. So the gen.xml backup files should not have an xml file extension. They should have an extension such as *.backup, as I did in my rar file.
– In Keymap editor, you can set up additional keyboard shortcuts, but keep in mind these things :
. Before proceeding, read below the “Why using a backup file” section.
. The number of keyboard shortcuts you should use is limited by the number of buttons on the Imon remote.
. Try not to override the default Kodi keyboard shortcuts. It seems that the addon will not allow you to do so anyway.
. If you want to use my files, try to put the same keyboard shortcuts as in the Imon’s Kodi options. Check the picture in this page for that, in the “Imon program commands for Kodi described” section.
. Some keymap editor commands do not work anymore, for example : activatewindow(videofiles) does not work as of february 2018.
– In the rar file, you will find the Kodi.imo file. It is the Imon setting file for Kodi. Put it in “C:\Users\%username%\AppData\Roaming\SOUNDGRAPH\iMON\Setup\iMON PAD\” .
. 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!
– In the rar file, you will find the kodistart folder. It can be placed in “C:\Users\%username%\AppData\Roaming\SOUNDGRAPH\iMON”. Recently I chose to put it in C:\Users\%username%\OneDrive\Documents\Job\MyPrograms. Read below on how and why using this file folder.
– In the rar file, you will find a bonus file : my PowerDVD.imo file, for PowerDVD v17, from February 2018.
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:
The central green button
On every MCE remote, including the Imon one, there is a main central button used to launch the media center app such as Windows Media Center or Kodi. This button is usually green but can change on different Imon remote versions. It is easy to associate the “regular” Kodi exe with the central button on the remote. However, it is not so easy to associate it with the “universal windows platform” version of Kodi. So I created a windows shortcut for that. In the “Kodistart” folder, you will find a shortcut file called “ImonRemote_GreenButton_KodiLaunch Shortcut”. This helps to start Kodi UWP with the remote’s green button, even after Kodi is updated.
To use this, go to Imon settings > Utilities > app launcher > add > search by filename > browse to the path of Kodistart and select the shorcut.
The lower 5 colored buttons
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 to 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.
Using a Powershell script
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 a Powershell script to launch the videos, music, pictures and movies screens.
My script is called “ImonRemote_ColoredButtonsToKodiScreens.ps1”. The user presses the red button (for example) that triggers a windows shortcut : CTRL + ALT + V. This shortcut starts a bat file which in turn, starts the Powershell script. The key shortcut is passed to the Powershell script. Here is what the powershell script does:
- Get a windows shortcut such as CTRL+ALT+V
- Launch Kodi
- Wait 10 seconds. On my system, Kodi starts a bit slowly. If your Kodi starts faster, change this 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 :
Using a Batch script
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 a *.bat file that just starts the ps1 file. To understand what the bat does exactly, you can check the content of ImonRemote_ColoredButtonsToKodiScreens.bat. But basically it just receives the shortcut CTRL+ALT+V, launches the Powershell script with this shortcut as parameter.
Important: you may need to edit these files in order to make them work. The new 2018 versions of this scripts are not user dependant and should work on any system but perhaps you will need to adapt it and change some options.
Using Windows Shortcuts
And there are 2 last steps for Imon manager:
I have already created for you some Windows shortcuts. You can find all 4 of them in the Kodistart folder. Perhaps you will need to re-create them.
These Windows shorcuts are for the *.bat files. 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.
So in the “Kodistart” folder, you have several Windows shortcut files. They will all call the same bat file, but with different parameters. Let’s take as example the shortcut that launches the Kodi video screen : “ImonRemote_VideosButton_ToKodiScreen Shortcut”.
Using the mouse’s left button, drag and drop it from :
“C:\Users\%username%\AppData\Roaming\SOUNDGRAPH\iMON\kodistart\” (or some other location on your hard drive where you unzipped the folder)
C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\[subfolders if any]\Kodi .
Then edit the shortcut and check if everything’s fine for your system. You need to change ‘david” by your Windows user name. The keyboard shortcut I chose for this shortcut is CTRL+ALT+V. If you want to choose another key, in Windows 8 or 10, just type this key, for example : “V”, and Windows will add “CTRL+ALT” before, as it is the default keyboard combination for shortcut files. You can also choose CTRL+SHIFT+key or SHIFT+ALT+key or CTRL+ALT+SHIFT+key. You may need to restart Windows for these shortcuts to work.
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 Windows shortcuts. 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.
If your colored button doe not work, try the keyboard shortcut on your keyboard: press CTRL+ALT+V. If this does not work neither, then there is a problem with Windows capturing keyboard shortcuts. Restart your PC in safe mode and try the shortcut. If the shortcut works, then it means there is an app staying in memory during your use of Windows, that captures keyboard shortcuts instead of Windows. In my case, this app was : GeForce Experience. In it, I disabled “in game overlay” which works with keyboiard shortcuts. Then all went well.
About the DVD purple button
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.