Jump to content

Simple IE and winexist question


spyro
 Share

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.

www.SecurityDistro.com

Link to comment
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

Run("iexplore.exe")

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

Send("!d")

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

Send($x & "{ENTER}")

FileChangeDir($workingdir)

Else

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

EndIf

RunAsSet()

Endif

Edited by mcgill
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...