| Reply | « Previous Thread | Next Thread » |
|
I'm new to s60 python and I have a question related to launching browser from a python script. I have a mobile minisite in url for example http://www.myminisite.mobi?pid=tyut76786.
Is it possible to create a small python script that launches browser so that it loads my minisite? And my second question is; is it possible to dynamically create sis file so that it contains the correct url where pid is dynamic user related parameter? I need to create a prototype that makes our customer easier to access our mobile sites just by clicking an icon on their mobiles. cheers, jari |
|
Problem solved but I think I stick to midp 2.0 midlets to do the trick...
|
|
so how did you launch the browser with a url?
|
|
exact command is this
import e32 import os path = 'z:\\System\\Apps\\Browser\\Browser.app' apprun = 'z:\\system\\programs\\apprun.exe' def open(url): """Opens the webbrowser to the supplied URL""" apprun_arg = path + ' "' + url + '"' e32.start_exe(apprun,apprun_arg, 1) open("http://www.google.co.uk") Thanks to the guy that made the browser extension! was great! |
|
Quote:
Code:
import e32
import os
path = 'z:\\System\\Apps\\Browser\\Browser.app'
apprun = 'z:\\system\\programs\\apprun.exe'
def open(url):
"""Opens the webbrowser to the supplied URL"""
apprun_arg = path + ' "' + url + '"'
e32.start_exe(apprun,apprun_arg, 1)
open("http://www.google.co.uk")
Try this also : Code:
import webbrowser
webbrowser.open("http://www.google.co.uk")
pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
I used Nick Burch's webbrowser.py lib module
|
|
Cant find apprun.exe...only have apprun.dll
|
|
are you running it on a phone or from emulator? I don't have an apprun.dll on my 6680 and what phone are you using?
|
|
Lunching the browser from python on 3rd generation s60
apprun.exe only exists on earlier symbian versions, it used to be required to start an app file (*.app) - but now (v9 onwards) applications are .exe's instead of .app's This is how I did it on my Nokia E61 (N80 and E60): url = '4 www.symbian.com' # 4 means Start/Continue the browser specifying a URL b = 'BrowserNG.exe' # or with the full path b='z:\\sys\\bin\\BrowserNG.exe[ e32.start_exe(b, ' "%s"' %url, 1) # the space between ' and " seems to be important so don't miss it! Note: I have only been able to start the browser with the give url when the browser settings->Home pages is set to 'Bookmarks'. It is also possible to spesify the IAP you want the browser to use: url = '4 [url]www.symbian.com 5 # The IAP I wanted was number 5 Note: In order select IAP with python, the browser settings->Access point must be set to anything but 'Always ask'.
Last edited by fredrian : 2006-08-25 at 13:07.
|
|
Hi guys,
i tried using webbrowser module in my app.. i get an error no module called collection?? i can use webbrowser with normal python dist but not on my phone. i cannot find info on this collections module anywhere though. any ideas?? thanks |
|
Quote:
Yes, its possible to create a small python script that launches browser. Dynamic creation of sis file is a bit complicated, but if you use the source of Py2sis for Symbian phones by Maxim may be you could possible achieve that. Kandyfloss V 7.0642.0 18-10-06 RH-51 Nokia 7610 |
| kandyfloss |
| View Public Profile |
| Find all posts by kandyfloss |
|
Did anybody succeed in passing url to browser on nokia 6600?
I only get a white page. |
|
I think it will create problem in 6600.
AND ONE MORE THINK IS THAT YOU MAY COULD LAUNCH BROWSER BY ONE SCRIPT IN PYTHON.. ![]() OK |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| launching wap browser with URL | mtg101 | General Symbian C++ | 28 | 2008-07-01 17:01 |
| Open browser from Python | gagravarr | Python | 3 | 2007-10-07 06:29 |
| Launching a Python script (with arguments) from Flash? | bouvin | Python | 14 | 2006-08-22 19:33 |
| Launching Browser | taperoni | General Symbian C++ | 4 | 2004-10-14 05:20 |
| launching embedded WAP Browser in 6600? | marjola | Symbian Networking & Messaging | 0 | 2004-01-26 15:18 |