autostart.py no dialogue focus, and home screen locked
#1
Hi,

This is my first attempt at something very basic.

I have a dialogue box which pops up upon start, however it does not have focus on the button, and after clicking OK the home screen does not work correctly until I click "home" on the remote.

What am I doing wrong? Smile

Any help gratefuly received!

created script.myscript.checks directory containing just autostart.py:

PHP Code:
import sys
import os
import pwd
import xbmcgui

if  os.path.isfile("/.safeboot") :
    
dialog xbmcgui.Dialog()
    
dialog.ok("Device did not shut down properly""Always shut down via the power button"
Reply
#2
On closer look this seems to be because the dialogue is launching before the home window is properly established. Delaying 20s at the start of script does fix this although not very nice. What should I be testing for , in order to time the dialogue correctly? Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
autostart.py no dialogue focus, and home screen locked0