Sub OpenFile(FilePath as String)
Shell "cmd /c " + chr(34) + "start " + FilePath + Chr(34)
End Sub
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
Public Const SW_SHOWNORMAL = 1
Sub ShellStart(FileName As String, Optional Path As String = "c:\")
ShellExecute 0, vbNullString, FileName, vbNullString, Path, SW_SHOWNORMAL
End Sub
For i = 0 To WebTr.Document.All.Length - 1
If WebTr.Document.All(i).name = "try_login" Then WebTr.Document.All(i).Click: Exit For
Next
For Each Elem In WebTr.Document.All
If Elem.Name = "try_login" Then
Elem.Click
Exit For
End If
Next
Сейчас этот форум просматривают: Google-бот и гости: 98