Good day!
I just want to know on how to correctly use SendMessage API. When the save as dialog box popsup, Save button will be automatically click.
Let say I have hwnd and classname value. Please see below
Public Declare Function SendMessage Lib "user32" Alias "SendMessageW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public DialogHWND As Long
Public ClassNameX as string
DialogHWND=1115400
classname="#31786"
Private Sun Command1_Click()
Dim lret As Long
lret = SendMessage(DialogHWND, BN_CLICKED, ClassNameX, Null)
End Sub
Thank you fe helping..!