spyro Posted September 21, 2006 Share Posted September 21, 2006 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 More sharing options...
Moderators big_daddy Posted September 21, 2006 Moderators Share Posted September 21, 2006 (edited) Take a look at all the _IE* funtions in the help file. _IEAttach() to be more specific. Edited September 21, 2006 by big_daddy Link to comment Share on other sites More sharing options...
mcgill Posted September 21, 2006 Share Posted September 21, 2006 (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 September 21, 2006 by mcgill Link to comment Share on other sites More sharing options...
spyro Posted September 21, 2006 Author Share Posted September 21, 2006 Wouldn't I need to test that IE loaded before I try to attach? www.SecurityDistro.com Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 21, 2006 Moderators Share Posted September 21, 2006 Wouldn't I need to test that IE loaded before I try to attach?Sorry, I just reread your post.Look at _IECreate() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now