VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Function that takes a window name and control name as a parameter and returns the text in the speci

Chris Beckingham  (6 Submissions)   Miscellaneous   VB 6.0   Unknown Difficulty   Tue 15th May 2001   Mon 8th February 2021

Function that takes a window name and control name as a parameter and returns the text in the specified control.

API Declarations



Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) 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 SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Private Const WM_GETTEXT = &HD
Private Const WM_GETTEXTLENGTH = &HE

Rate Function that takes a window name and control name as a parameter and returns the text in the speci (1(1 Vote))
Function that takes a window name and control name as a parameter and returns the text in the speci.bas

Function that takes a window name and control name as a parameter and returns the text in the speci Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters