HZGN.COM
welcome to my space
X
Search:  
Feng Shui | Graphic Design | Cosmetics | Causes and Organizations | Regulatory Compliance | Gadgets and Gizmos | Computer Forensics | Tools and Equipment | Related articles
Welcome to:hzgn.com
 HOME   Please help me write this script:

Please help me write this script:

Published by: mike 2009-01-07

  • # hi, i am trying to write a script that would auto execute upon xbmc's opening. this script will ask for a password, if the password doesn't equal that something, then xbmc will exit the program.

    -----------------------------------------------------------
    # imports
    import xbmc,xbmcgui
    from time import *

    #initial stuff
    dialog = xbmcgui.dialog()
    pdialog = xbmcgui.dialogprogress()
    sleeptime = 0
    shutdowntime = 0
    doit = 0
    pwl = "

    # defs #

    def getuserinput():
    pdialog.create('password','press cancel to enter password.')
    pdialog.update(100/10)
    if pdialog.iscanceled():
    pdialog.close()
    keyboard = xbmc.keyboard('')
    keyboard.domodal()

    if (keyboard.isconfirmed()):
    return keyboard.gettext()
    Help me fix javascript please::
    This is page 2. I will include the script for page 2 below as well. 2> if (iens6) document.write(</div></div>) </script> <table width=175px><td>
    http://answers.google.com/answers/threadview?id=363269
    HOME
    else:
    return 0
    pwl = getuserinput()
    if pwl != "eminaz"
    doit = 1


    #waits.... and finally shut down the box
    def doshutdown():
    global doit
    if doit == 1:
    xbmc.player().stop()
    pdialog.close()
    xbmc.shutdown()

    #main
    def main():
    showtimesdialog()
    doshutdown()

    main()

    -------------------------------------------------
    i didn't write all of that, to be honest. i borrowed some of the code from vultain and alx.

    i don't know much about pything, but it is kind of like flash actionscripts, which i am experienced with.


  • where is the code for showtimesdialog()? the main function calls it but we don't get to see what it does.

    also, the forum must've messed up some of the indentation so it is hard to know what the logic is exactly...


  • use the code tags


  • any help would be appreciated.





  • Red Hat's Rough Recovery From CFO Exit
    Windows Live Finds a New, Pre-installed Home

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Please help me write this script: , Please add it free.
  • internal modem for mac g4 tower
  • forex trading company based in belize doesn 39 t accept u s clients
  • privacy statement
  • medea
  • all e mails sent stored on internet
  • translating w s burroughs into latin
  • manual toapanta artist
  • wills
  • viewing black holes from earth
  • military banking
  • how many of the elements has man made by atomic reactions
  • what is the recipe for making the alcohol based drink called a blue hypnotic
  • trigeminal neuralgia
  • phone booths in london
  •  
  • and the city music
  • and the city
  • is texas technically a state
  • client launching new toy
  • ideally what are the qualities of people of high rank
  • latin translation of phrase wanted
  • and the city engagement ring
  • revised world map vs traditional modern western world view map
  • samuel johnson quote
  • bbc television
  • renewable energy with unlimited h20
  • us law about israeli nuclear weapons
  • english criminal law

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 hzgn.com All Rights Reserved
    Site made&Support support@hzgn.com    E-mail: web@hzgn.com