The best advice I can give it to add a msgbox just before creating the e-mail, warning the users of the authorization prompt that is about to come, and informing the user to select the option to allow the application to have access for 10 minutes, which would save having to respond 1200 times.
I was trying to work on a pop-up blocker.
Createobject gives you an object that you can trap the newwindow2 event, but you can't cancel it because VBScript uses variants, not an actual boolean.
getobject fails, in every permutation I tried. It won't accept a missing path, despite MSDN...
thanks to billchris, the key is the shell.shellwindows collection, returning a seperate opject for each IE window (but not webbrowser windows, hmmmmm)
Here is a short VBSCRIPT demo.
=====================================
dim objShell, objShellWindows, i
set objShell =...
Thanks to member billchris, the key is the shell.shellwindows collextion under the object "shell.application"
here is a vbscript demo
================================
dim objShell, objShellWindows, i
set objShell = createObject("Shell.Application")
set...
Thanks, that's the key I was looking for, the shellwindows collection. (curious, why it returns only IE object windows and not webbrowser object windows, or all windows? Oh well another time)
In fact, I have boiled it down to a small demo in VBScript that gives back the URL of each open window...
I'm trying to write a pop-up blocker. I can grab the top level parent of Internet Explorer with
set oie = getobject( ,"InternetExplorer.Application")
but if other windows have been opened by shift+click or a window.open statement, I can't seem to grab a hold of it, nor can I find a...
I have tried the following code with internet explorer opened, and one of the links opened in a new window.
set oie1 = getobject( ,"InternetExplorer.Application")
set oie2 = getobject( ,"InternetExplorer.Application")
'set a breakpoint on the next statement
junk =...
The CurrentDirectory method is part of version 5.6, which you get automatically as part of the upgrade to IE6, which I would guess is something you want done anyway.
Where, in the Internet Explorer Object can I find the child windows of the parent window?
I opened IE6, then shift+click on a link, then run the following code
set oie = getobject( ,"InternetExplorer.Application")
'set a breakpoint on the next statement
junk = "garbage"
I...
You need to add a reference...
tools -> Reference -> Microsoft Internet Controls (shdocvw.dll)
It then works.
Dim WithEvents ie As InternetExplorer
Set ie = CreateObject("InternetExplorer.Application")
I've been working this recently, and here is the answer, for all interested:
Here is how the MSDN articles say to use the NewWindow2 event:
Sub IEobject_NewWindow2(ByRef ppDisp as object, ByRef Cancel as Boolean)
Cancel = True
End Sub
You can't do this with VBScript!
Why? Variants! Here...
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.