Posts: 139
Joined: May 2014
Reputation:
9
Firstly, thanks for this utility which I’m finding really useful in my HTPC setup.
All is working well, except that I get a “cannot connect to remote server” dialog in Kodi when it executed following a suspend state. This doesn’t happen when Kodi is executed after a log-on.
I disabled the Kodi Video Library setting “update library on start-up” and the dialog doesn’t appear after resuming from suspend so I suspect that Kodi is trying to connect to the internet before the internet connection is re-established.
I looked at the source for Launcher4Kodi.ahk and saw that the code related to executing Kodi after log-on was:
If (StartKodiOnWinLogon = 1 and ReloadLauncher4Kodi = 0)
{
Sleep %StartupDelay%
LaunchApplication(KodiPath)
WinWait,Kodi,,2 ; wait 2 seconds
WinActivate, ahk_class Kodi ; activate and bring to front.
}
Whilst (I think) the code related to executing Kodi after suspend was:
Sleep %StartupDelay%
;WinWait,Kodi,,6 ; wait 6 seconds
WinActivate, ahk_class Kodi ; activate and bring to front.
LaunchApplication(KodiPath)
Could this cause my problem? Any help appreciated.
The messages in the log related to the dialog message are:
15:01:52 T:4228 ERROR: CCurlFile::FillBuffer - Failed: Couldn't resolve host name(6)
15:01:52 T:4228 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
15:01:52 T:4228 ERROR: ADDON::CScraper::Run: Unable to parse web site
15:01:52 T:4828 ERROR: Win32DllLoader::Load: Failed to load "atiadlxx.dll" with error 126: "The specified module could not be found.
"
15:01:52 T:4828 ERROR: LoadLibrary('atiadlxx.dll') failed
15:01:52 T:4828 ERROR: Win32DllLoader::Load: Failed to load "atiadlxy.dll" with error 126: "The specified module could not be found.
"
15:01:52 T:4828 ERROR: LoadLibrary('atiadlxy.dll') failed
Posts: 139
Joined: May 2014
Reputation:
9
2015-03-24, 10:24
(This post was last modified: 2015-03-24, 14:00 by berkhornet.)
Thanks for response. On further investigation it seems that Kodi is not being closed on system suspend/started when Windows resumes from sleep, despite these settings being checked in the GUI.
To resolve this, I have to run Laucher4Kodi with Administrator rights.
Unfortunately, Windows doesn't allow Start Up programs to run with Administrator rights, so I had to replace the Launcher4Kodi shortcut that is placed in the Startup folder with shortcut to a batchfile that runs Launcher4Kodi. A bit convoluted, but seems to work.
Posts: 14
Joined: Jan 2015
Reputation:
0
TB4875
Junior Member
Posts: 14
Hallo,
I use Laucher4Kodi on my Windows 8.1 x64 with Kodi 14.1. Great program and works fine. But I have two little problems. Maybe someone can help me or can give me some little hints...
1. I entered a delay of 5 seconds what is perfect for me. I also tried 10 and 3 seconds but this setting works fine. But sometimes Kodi is minimized by something and I have to maximize it back with Alt+Tab. I don't know what program is doing this. There are not startup programs, no scheduled tasks or something else. It is also not always happened. So I don't know what is happend here. Does anyone has an idea what can make this problem?
2. I set the setting that Kodi has the focus. I also have PowerDVD and TMT as addional external player for BDs. I entered the path do the exe files in Launcher4Kodi and set also the setting, that these applications should get the focus. If I want to start a BD to play with PDVD or TMT the focus fall back to Kodi and not to the external players. Why?
I hope you unterstand my problems and someone can help me...
Posts: 139
Joined: May 2014
Reputation:
9
Many thanks for the clear explanation. Will have to give it further thought!
Posts: 42
Joined: Jul 2014
Hello,
I'm a new user of your tool, and I think it's amazing.
However, I have an issue everytime I put my Intel NUC on "Sleep" then wake it up: Kodi is on minimize, every single time. I'm on Windows 8, and when I wake up my computer, there's no icons anymore, nothing, just the Kodi icon minimize. Weird, isn't it?
Posts: 42
Joined: Jul 2014
Thanks for your reply. Again, great tool, really.
Quote:You can try the options 'Close Kodi on Suspend' and 'Start Kodi when Windows Resume from sleep'. This will solve the issue, but kodi will be closed and reopened.
Everything is already check, the behaviour is the same. Actually, I think the issue is not about your launcher, but an issue with Windows 8.1 resume from sleep mode.
Every single time I resume from sleep my system (Nuc, windows 8.1), I can see only the wallpaper of my desktop, icons in my task bar with Windows button, but no icon at all from the desktop. Nothing. And of course, I can't launch anything.