Getting a browser url on Windows

Terry Judd tsj at unimelb.edu.au
Tue Feb 17 18:49:27 EST 2009


Thanks Ken - that's really helpful.

Terry...


On 18/02/09 8:54 AM, "Ken Ray" <kray at sonsothunder.com> wrote:

> 
>> I use Applescript to get the url of the active window in Safari and Firefox
>> on a Mac but is there any equivalent (VB?) that would allow me to do the
>> same for IE and Firefox under Windows? Or is that a job for an external?
> 
> Sorry it took so long for me to respond, Terry, and if you already have an
> answer forgive me... but all I have is how to get it from IE with VBScript:
> 
> Set objApps = CreateObject("Shell.Application")
> For Each objApp in objApps.Windows
>     If (objApp.Name = "Windows Internet Explorer") or _
>        (objApp.Name = "Microsoft Internet Explorer") Then
>         If objApp.LocationURL <> "" Then
>             WScript.Echo objApp.LocationURL
>         End If
>     End If
> Next
> 
> 
> HTH,
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list