Launching IE

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

Im guessing you'll have to use the third party library that comes with PB called CallCom() for any object orientated programming. Unfortunately there arent many topics detailing this command. Danilo?

viewtopic.php?t=3733

--Kale

In love with PureBasic! :)
Post Reply