Kodi Community Forum
AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112)
+--- Thread: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button (/showthread.php?tid=345748)



AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - Questions1010 - 2019-07-28

I apologize if this is not the right category to put this.

Windows 7 Professional (64Bit)
I am currently using an older version of Kodi (XBMC) which is Gotham 13.2 (just at the moment because I am trying to work on/analyze a skin I was developing in the past).

With the program "AutoHotkey" I am looking to be able to....
1.) Load up Windows 7 normally.
2.) If XBMC/Kodi is not open then I would like the "Start" button on a PS3 game controller to load up XBMC in full screen mode.
3.) While XBMC is opened I already have the "Start" button mapped to do things within the XBMC game controller xml file,
so I would like "AutoHotkey" to ignore when the "Start" button is being pushed when the XBMC program is currently running.

I was wondering if anyone has an already created script for the program "AutoHotkey" to perform the above task?
I have searched around and possibly found some stuff similar but at the moment I cannot figure out how to do this exact task.
I have never used this program before so I am a little confused at the moment.

I have noticed while searching in many scripts people are getting the XBox 360 big X "Guide" button to perform this task.
In the past if I ever try to link anything to the PS3 "Sync" button it would cause issues (because it is searching for a PS3) not sure if these buttons perform different functions on each games systems controller.
If possible though I wouldn't mind using the PS3 Sync button to start up XBMC that would actually be better than the "start" button.

Anyways Thanks For Any Help


RE: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - feathers - 2019-07-29

I used to use a script called “GSB (green start button) script” or something along those lines. If you google for that you will probably find something relevant you can modify to work for you.


RE: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - Questions1010 - 2019-09-09

Thank You for your reply
Sorry it took so long to respond I have been having some issues.
I believe I looked into this a while back but never really found anything that worked.

I really don't want to have to sign up for another forum but I may have to ask this question on their forum if no one knows of anything here.
I remember looking this up there but don't remember finding anything that worked here either.
This I would imagine is a pretty common request, so there has to be a simple script for this somewhere.
Hopefully I will find it.

I am still looking for a solution for this if anyone has anything else to share.
Once I get myself situated I will look around a bit more.
If I find anything I will try to link it here just in case someone is looking for something like this in the future.
Thanks Again


RE: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - Questions1010 - 2019-09-14

Man, I thought this would have been a common desire by other users already.


RE: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - feathers - 2019-09-14

http://xbmccustomregis.sourceforge.net/remote_manu.html

Use the green start button script found on here. Change the trigger key as required.


RE: AutoHotkey Script To Load Kodi With A Push Of A Game Controller Button - Questions1010 - 2019-09-27

@feathers 

Thank you so much!
I remember finding this page the first time you mentioned it and forgot that I never was able to test it out because of other issues I was having.
I tried this the other day and it works great!
Now my only problem is, is that it works so great that I can't stop closing Kodi for no reason other than to re-launch it with the press of a button Smile
Thank you again for sticking with me on this, I really appreciate it.

Also, although they probably will never see this, thank you to GamerElite360 for creating the script and also the creators of AutoHotKey, very helpful.

For anyone else trying to do this, most of the information is shown on the webpage link where the script is located.
For the part of assigning a game controller button....
Open the script to edit it
Change the "^!Enter" to "Joy#"    But replace the # with the button number you want to map, so for example "Joy8" I believe will launch Kodi using the "Start" button on the game controller.

Hope this helps