stipsa
Aug 29th, 2000, 04:23 PM
I use following code to open .HTML file with IE. I have to wait in loop while ie window or peocess behind it finishes.
The usuall microsoft example for waiting for shell program to finish, here doesn't work. I need to get some information, at least if Ie window is open, but Iswindow API doesn't work.
Public Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, ByVal _
lpDirectory As String, ByVal nShowCmd As Long) As Long
sub main
res = ShellExecute(0&, vbNullString, "c:\windows\desktop\proba.htm", vbNullString, vbNullString, vbNormalNoFocus)
If res <= 32 Then
MsgBox ("Unable to send information to internet!" & Chr(10) & "Next try will be when you login."), vbOKOnly
Exit Sub
End If
end sub
Please help, Thanks
The usuall microsoft example for waiting for shell program to finish, here doesn't work. I need to get some information, at least if Ie window is open, but Iswindow API doesn't work.
Public Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, ByVal _
lpDirectory As String, ByVal nShowCmd As Long) As Long
sub main
res = ShellExecute(0&, vbNullString, "c:\windows\desktop\proba.htm", vbNullString, vbNullString, vbNormalNoFocus)
If res <= 32 Then
MsgBox ("Unable to send information to internet!" & Chr(10) & "Next try will be when you login."), vbOKOnly
Exit Sub
End If
end sub
Please help, Thanks