×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    how to start things like "speed-dial" in a python app?

    Hi @ll,

    I'm very new to python and I try to write a little "Favorite-Program" for my 5800 XM.

    In this little Prog I wanted to put in a list with a few apps I've installed on my 5800 XM and a few Things that I wanted to start with only 1 or 2 Touches from the active-standby. Only start my app and then touch on prog x and ready


    I also wanted to start the speed-dial and the wlan-assistent and 1 or 2 apps. I've installed a Python Programms called "FreiMinMon" and I found a listing to search Z: (and edited to find also on C on my phone but there wouldn't every app listed, which is installed on the phone?

    How can I found this installed (and well working apps) to start them in my program?
    Also how can I start the speed-dial and the wlan-assistent?

    Anybody can help me?

    Best regards Mike

    Here is my actual very simple "program":

    Code:
    # Active-Standby-Tool
    
    import appuifw, e32
    
    L = [u'Profimail', u'X-Plore', u'BTSwitch', u'Woerterbuch', u'Neustart']
    index = appuifw.selection_list(choices=L , search_field=1)
    
    if index == 0:
       e32.start_exe('c:\\system\\apps\\ProfiMail.exe','',1)
    
    if index == 1:
       e32.start_exe('c:\\system\\apps\\X-Plore.exe','',1)
    
    if index == 2:
       e32.start_exe('c:\\system\\apps\\BTSwitch.exe','',1)
    
    if index == 3:
       e32.start_exe('z:\\system\\apps\\mobiledictionary.exe','',1)
       
    if index == 4:   
       	appuifw.note(u"Restart","conf",1)
    	e32.start_exe(u'z:\\system\\programs\\sysstart.exe','',0)
    	
    else:
    	appuifw.app.set_exit()

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by Bigmike View Post
    How can I found this installed (and well working apps) to start them in my program?
    Also how can I start the speed-dial and the wlan-assistent?
    Umm...actaully ur question is not clear to me.
    Do u want to search for installed apps ?? There is already a module named as applist which can retrieve the list of installed apps. Download it from here :
    Applist Module
    use it as :
    Code:
    import applist
    
    apps = applist.applist()
    Moreover,
    The applist function returns a list of tuples (Uid, caption, fullName). Uid is an integer
    So, you can eaily find the installed apps like wlan-assistant etc. Hope it helps u..If u need more help, plz ask..

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: how to start things like "speed-dial" in a python app?

    ... when I'm using your script on my 5800 XM with python 1.91 beta it shows something like "no module named applist" ?

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by Bigmike View Post
    ... when I'm using your script on my 5800 XM with python 1.91 beta it shows something like "no module named applist" ?
    It won't work with PyS60 1.9.1, only 1.4.5.

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: how to start things like "speed-dial" in a python app?

    hm - with installed 1.45 it shows "Syntax Error - invalid syntax"

  6. #6
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by Bigmike View Post
    hm - with installed 1.45 it shows "Syntax Error - invalid syntax"
    You would need to install applist extension before using it.
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by Bigmike View Post
    hm - with installed 1.45 it shows "Syntax Error - invalid syntax"
    Syntax Error - invalid syntax: This error would more likely be due to some error in the syntax of the code, rather than a missing module.
    Pankaj Nathani
    www.croozeus.com

  8. #8
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: how to start things like "speed-dial" in a python app?

    So - is there no way to simple check out the "path" of Speed-Dial and the WLAN-Assistent without installing another python and something I don't understand :-)

    Best regards

    Mike

  9. #9
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: how to start things like "speed-dial" in a python app?

    IMHO, applist cannot list Speed-dial application.

    Anyways, does this link help?
    Pankaj Nathani
    www.croozeus.com

  10. #10
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by croozeus View Post
    IMHO, applist cannot list Speed-dial application.

    Anyways, does this link help?

    This link could be wonderfull but it seems that on s60v5 the path is changed on every app :-( i have tested 3 of them but i only got only "KErrBadName"↲

    Big thanks anyway..

  11. #11
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: how to start things like "speed-dial" in a python app?

    Quote Originally Posted by Bigmike View Post
    This link could be wonderfull but it seems that on s60v5 the path is changed on every app :-( i have tested 3 of them but i only got only "KErrBadName"↲

    Big thanks anyway..
    I've checked this on the 5800 of a friend (which is ha c ked) and it seems, that Python cannot acces Z:/sys/bin ? The path and the name of speed-dial is corecct but I've got still an error message, when I try to open it in my python-app.

    Is there a other way to open speed-dial and wlan-assistent with python?

Similar Threads

  1. Replies: 3
    Last Post: 2010-03-19, 16:46
  2. Replies: 16
    Last Post: 2007-07-16, 05:25
  3. Replies: 0
    Last Post: 2006-05-18, 16:56
  4. App. closed Python - error reporting
    By gotzingerdan in forum Symbian
    Replies: 1
    Last Post: 2005-04-01, 15:30
  5. bt_gps & gsm_loc simple python app
    By lda2000 in forum Symbian
    Replies: 2
    Last Post: 2005-01-18, 10:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×