Posted: Thu Apr 24, 2003 6:32 pm
Restored from previous forum. Originally posted by KNS.
I've written a URL tracker in python and would now like to redo the project in Purebasic with a graphical interface to set some of the parameters. The initialization code in Python looks like the following,
----
from win32com.client import *
import win32api
import time
def start():
w=DispatchEx("InternetExplorer.Application")
w.Navigate('[url]http://www.google.com'[/url])
w.Left=225
w.Top=25
w.Width=900
w.Height=960
w.Resizable=0
w.Visible=1
handle=w.HWND
cururl = w.LocationURL
w.Quit
start()
-----
Is this possible in Purebasic? If so, can someone offer a demonstration with a snippet of code? I'd like to introduce a dialog before the code launches and to reduce the weight of having a full python plus wxpython installation.
[Note: The python code needs to be properly indented to run. All the statements in the start function needs to be moved over a fixed number of spaces.]
Thanks,
K
I've written a URL tracker in python and would now like to redo the project in Purebasic with a graphical interface to set some of the parameters. The initialization code in Python looks like the following,
----
from win32com.client import *
import win32api
import time
def start():
w=DispatchEx("InternetExplorer.Application")
w.Navigate('[url]http://www.google.com'[/url])
w.Left=225
w.Top=25
w.Width=900
w.Height=960
w.Resizable=0
w.Visible=1
handle=w.HWND
cururl = w.LocationURL
w.Quit
start()
-----
Is this possible in Purebasic? If so, can someone offer a demonstration with a snippet of code? I'd like to introduce a dialog before the code launches and to reduce the weight of having a full python plus wxpython installation.
[Note: The python code needs to be properly indented to run. All the statements in the start function needs to be moved over a fixed number of spaces.]
Thanks,
K