VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code finds a window and sends message to the window.

Raj Diwate  (4 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Tue 20th February 2001   Mon 8th February 2021

This code finds a window and sends message to the window.

API Declarations


'Anybody can make suitable changes and reuse it.
'For Furthur querries please do not hesitate to contact [email protected]
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) 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 Any) As Long


Rate This code finds a window and sends message to the window. (1(1 Vote))
This code finds a window and sends message to the window..bas

This code finds a window and sends message to the window. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters