Sign in to follow this  
Followers 0
spyro

Simple IE and winexist question

5 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Take a look at all the _IE* funtions in the help file.

_IEAttach() to be more specific.

Edited by big_daddy

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Wouldn't I need to test that IE loaded before I try to attach?


www.SecurityDistro.com

Share this post


Link to post
Share on other sites

Wouldn't I need to test that IE loaded before I try to attach?

Sorry, I just reread your post.

Look at _IECreate()

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  
Followers 0