Password protect main menu options?
#16
Let say I make a .py file...

a) how do I put it "correctly" in the addons section to access it?
I can't manage to run it other that by special: under the profile folder. but then,
b) how do we correctly import xbmc and xbmcgui?
Any call I do to ActivateWindow or xbmc.ActivateWindow result in an error message. Apparently it doesn't exist.

there must be something I am doing wrong...

other than that, I guess I am OK, as I can popup a virtual keyboard, and if I output (print) the result to a comparison, I do get the expected result (good or bad entered string)
All I need is to properly pass to the next window or get back to the previous window, but it somehow eludes me.
Reply
#17
a) http://wiki.xbmc.org/index.php?title=Add-on_development
b) 'import xbmc, xbmcgui'
that's all it takes. but the script *has* to run in xbmc as xbmc exposes those to the python interpreter directly, not as "normal" python libraries

use xbmc.executebuiltin('ActivateWindow(foo)') to activate a window.
Reply
#18
execbuiltin! I haven't tried that.

Thanks a lot, I'll look into all of this Big Grin
Reply
#19
I wonder if somebody found a way for this, I would be interested of using this kind of protection.
Reply
#20
i know you ruled out the profile option earlier, but i think the following should do exactly what you want.

the first link below is an addon that loads a specific profile on xbmc boot (that way if your kid restarts the box or something, the locked profile will always be the default).. i think this addon will also auto switch to the default "locked" profile after a certain amount of time incase you are watching stuff and forget to switch back or restart the xbmc box. note you will need to setup the masterlock on the "locked" profile how you see fit, or just dont add the same sources/addons to the locked profile and your good to go.

http://forum.xbmc.org/showthread.php?tid=143455


you can then add add a menu item that can switch between profiles, and if done correctly, it will prompt for the password when selecting a passworded profile (your profile)..

http://forum.xbmc.org/showthread.php?tid...pid1219714
Reply

Logout Mark Read Team Forum Stats Members Help
Password protect main menu options?0