2020-08-04, 21:52
(2020-08-04, 16:04)rootz Wrote: script still works great on Windows 10 x64 v1909.Guess that's an FYI update on a 10 year old thread.
(2020-08-04, 16:04)rootz Wrote: script still works great on Windows 10 x64 v1909.Guess that's an FYI update on a 10 year old thread.
(2020-08-04, 21:52)PatK Wrote:Resurrecting again Script has worked for years (Win 10) but would not work on a much newer HTPC (Win 10). Anyone scratching their head who finds this thread, this might help fix it. The new machine had an additional registry entry for "RC6 based MCE and XBOX360 remote". This entry wasn't on the older system & conflicts with the Green Button entry for "RC6 based MCE remote", so delete it.(2020-08-04, 16:04)rootz Wrote: script still works great on Windows 10 x64 v1909.Guess that's an FYI update on a 10 year old thread.
AutoHotkey:if not WinExist("ahk_exe Kodi.exe") ;IfWinNotExist is deprecated
{ ;Added brackets to include lines 11 to 40 in the "if"
...
}
AutoHotkey:Sleep, 3000 ;Wait before Kodi is completely started. Otherwise, the following commands could be applied under Windows.
AutoHotkey:WinShow, ahk_exe Kodi.exe ;First to front
WinActivate, ahk_exe Kodi.exe ;Then focus
AutoHotkey:WinGet, ExStyle, ExStyle, ahk_exe Kodi.exe ;"Style" and "ahk_class" could not detect properly fullscreen or windowed mode of Kodi
if (ExStyle & 0x00000100) ;0x00000100 is WS_EX_WINDOWEDGE
AutoHotkey:Send !{Enter} ;"VKDC" did not work, used instead the Alt+Enter shortcut.
AutoHotkey:WinActivate, ahk_exe Kodi.exe ;Added focus on Kodi before WinGet and Send
(2021-11-03, 13:15)FumbDuck Wrote: 3) Find registry entry called 745a17a0-74d3-11d0-b6fe-00a0c90f56da (you might want to back this up before proceeding) & delete it