2013-02-27, 06:50
Hopefully this won't be too complicated of an issue. I have a logitech K400r keyboard and am running in windows 8. I have installed logitech's setpoint drivers so that I can customize the shortcut keys on the keyboard.
In logitech's setpoint, I have one button set to run the XBMC .exe file, however when I run it this way, XBMC does not start up with window focus. I have to either click in the XBMC window or alt-tab and select the XBMC window before any button presses work to control XBMC. What is confusing is if I go into the program files installation folder and double click on the xbmc .exe file manually, it will start up correctly with window focus.
So it appears logitech's drivers do something that make it lose focus instantly, or just start in the background. What can I do to get around this? I had thought maybe a .bat file could be made that could do this but I do not know what to put in it.
(It would also be nice if, when XBMC is running but is in the background, the .bat file could also make XBMC the focused window -- that way pressing the shortcut button would always bring up XBMC whether its in the background or not yet started)
For example the batch file could do this (I don't know how to write the code for this
XBMCshortcutkey.bat:
// hide command prompt dos type window so it doesnt show up at all
If (XBMC.exe = running ) give xbmc window focus
else (run xbmc.exe; wait 1 second and give xbmc window focus)
Anyone know how this could be done? (Or any other way to accomplish this?) Thanks!
In logitech's setpoint, I have one button set to run the XBMC .exe file, however when I run it this way, XBMC does not start up with window focus. I have to either click in the XBMC window or alt-tab and select the XBMC window before any button presses work to control XBMC. What is confusing is if I go into the program files installation folder and double click on the xbmc .exe file manually, it will start up correctly with window focus.
So it appears logitech's drivers do something that make it lose focus instantly, or just start in the background. What can I do to get around this? I had thought maybe a .bat file could be made that could do this but I do not know what to put in it.
(It would also be nice if, when XBMC is running but is in the background, the .bat file could also make XBMC the focused window -- that way pressing the shortcut button would always bring up XBMC whether its in the background or not yet started)
For example the batch file could do this (I don't know how to write the code for this
XBMCshortcutkey.bat:
// hide command prompt dos type window so it doesnt show up at all
If (XBMC.exe = running ) give xbmc window focus
else (run xbmc.exe; wait 1 second and give xbmc window focus)
Anyone know how this could be done? (Or any other way to accomplish this?) Thanks!