VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in o

C Labitan, Jr. MD  (1 Submission)   Internet/HTML   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Mon 11th October 1999   Mon 8th February 2021

Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in one subroutine to keep things simple and

API Declarations



Private 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

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessageLong& Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long)
Private Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Const WM_USER = &H400
Const EM_LIMITTEXT = WM_USER + 21
Private Const WM_GETTEXT = &HD
Private Const WM_GETTEXTLENGTH = &HE
Private Const EM_GETLINECOUNT = &HBA
Private Const EM_LINEINDEX = &HBB
Private Const EM_LINELENGTH = &HC1

Rate Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in o (1(1 Vote))
Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in o.bas

Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in o Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters