How to send click event to button on other application
Posted on 2008-10-04
Anyone know how to send "click" to button on other application. I tried alot of example from internet but still no luck.
Below is a portion of my existing code:
Dim hwnd As Long
hwnd = FindWindowEx(hwnd, 0, "Button", "Cancel") 'vbNullString)
If hwnd = 0 Then
MsgBox("Couldn't find the button")
'PostMessage(hwnd, BM_CLICK, 0, 0)
I do not know why its not working. Need help.