Jump to content
Sign in to follow this  

Simple IE and winexist question

Recommended Posts

I recently saw ( somewhere on here ) a way to open IE and send it a URL can someone direct me to that link?

How do I tell a WinExists to activate any Program with *- Microsoft Internet Explorer.

I have tried If WinExists("- Microsoft Internet Explorer") Then

and I have tried If WinExists("* - Microsoft Internet Explorer") Then

Nither appear to work.


Share this post

Link to post
Share on other sites

This is what I use to run webpages with admin writes, this code should help you out......I user this code with a listview

$ret = _GUICtrlListViewGetItemText ($listview1, -1, 0)

; Set the RunAs parameters to use local adminstrator account

$USERNAME = "**********"

$PASSWORD = "************"

$DOMAIN = @LogonDomain

$RUN = 0 ; run indicator

; retrieve the cycle from commandline

If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1]

If $RUN = 0 Then

RunAsSet($username, $DOMAIN, $password)

$workingdir = @WorkingDir

If FileChangeDir("C:\Program Files\Internet Explorer") Then


WinWaitActive("site name in head at the top left corner") ; Ex. = blank - Microsoft Internet Explorer


$x = StringFormat("%s", $ret)

Send($x & "{ENTER}")



MsgBox(0, 'Debug', 'Could not change directory'); debug




Edited by mcgill

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...