[Upload Beta] Added more comments to IE creation
This commit is contained in:
parent
f37195bc89
commit
48814b3c37
|
@ -19,16 +19,19 @@ function CreateIeWindow ()
|
||||||
|
|
||||||
Set CreateIeWindow = nothing
|
Set CreateIeWindow = nothing
|
||||||
For count = 0 to 100
|
For count = 0 to 100
|
||||||
WScript.StdOut.WriteLine count & ": Trying to create InternetExplorer"
|
WScript.StdOut.WriteLine count & ": Trying to create Internet Explorer"
|
||||||
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
|
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
|
||||||
if not IE is nothing then
|
if not IE is nothing then
|
||||||
|
WScript.StdOut.WriteLine count & ": Created Internet Explorer"
|
||||||
IE.Visible = True
|
IE.Visible = True
|
||||||
|
|
||||||
WScript.StdOut.WriteLine IE.HWND
|
WScript.StdOut.WriteLine IE.HWND
|
||||||
Set CreateIeWindow = IE
|
Set CreateIeWindow = IE
|
||||||
exit for
|
exit for
|
||||||
end if
|
end if
|
||||||
|
WScript.StdOut.WriteLine count & ": Not created"
|
||||||
WScript.Sleep 100
|
WScript.Sleep 100
|
||||||
|
WScript.StdOut.WriteLine count & ": Should loop"
|
||||||
Next
|
Next
|
||||||
if CreateIeWindow is nothing then
|
if CreateIeWindow is nothing then
|
||||||
WScript.StdOut.WriteLine "Failed to create InternetExplorer.Application"
|
WScript.StdOut.WriteLine "Failed to create InternetExplorer.Application"
|
||||||
|
|
Loading…
Reference in New Issue