I cannot figure why this script does not work:
HotKeySet("^!k", "StartKodi")
StartKodi()
While 1
Sleep(200)
WEnd
Func StartKodi()
ShellExecute("C:\Program Files\Kodi\kodi.exe")
EndFunc
I would like to run the function only when the HotKeySet is pressed, But the HotKeySet does not start the function apparently....