There is a control flow statment that goes something like this:
condition ? return if true : return if false
I can't remember exactly how it goes, or the name for it, and any amount of seach engine searching is fruitless.
Thanks for the help.
Hey, that would also work, I did notice in all my debugging that it wouldn't execute an 'else' if there was an error in the original logical test of the 'if'.
With a small amount of experimentation, the working code comes as thus:
surl ="http://www.google.com/"
set ie = nothing
set shapp=createobject("shell.application")
on error resume next
For Each owin In shapp.Windows
if left(owin.document.location.href,len(surl))=surl then
if err.number...
Funnily enough, just seconds after I read your post did I figure out why it would get the handle on a folder window.
Consider the following:
There are 4 windows open, 3 IE browsers and 1 folder wind, and shapp.windows contains, in this order:
1. Microsoft Internet Explorer
2. Microsoft...
It's me again with another question on this topic (this will be my 3rd post on it)
I have the this code (given by Tsuji), which is suppose to get a handle on an already existsing instance of IE (given its current URL), and it works quite well, however, it has this little quirk: If there's a...
I had asked a question about how to control an instance of internet explorer (see http://www.tek-tips.com/viewthread.cfm?spid=329&newpid=329&sqid=877814 ) and I was wondering how events could be triggered from that same object, as would be done by the "ie_" in:set...
Thank you very much tsuji, it's amazing how neatly that script worked, and also how versatile it is as it looks as though this could work with many other things.
Thanks again,
Elektryon
I know that it's possible to run an instance of Internet Explorer from within the script itself and be able to control it, but is there a way to control an already existing instance of it?
The closest I've been able to come to this is to use WshShell.AppActivate to give it the focus and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.