I hope this is as easy as it seems, I'm missing something though as I'm not well versed in VB.
Once I've got the Print/Save dialog from of the browswer, I'm sucessfully getting a handle to the print dialog window and also the handle for the "save as" button however getting the button to click is not working.
Additionally, I'd like to be able to send a file name directly to the textbox within this dialog box instead of using keystrokes.
I've enclosed some scaled down code to make for easy scanning, basically I'm stuck in the process of getting SendMessage() to
DialogHwnd = 0
Do Until DialogHwnd <> 0
DialogHwnd = FindWindow(vbNullString, "Save As")
Dim ButtonHwnd As Long
'get the handle of the first button
ButtonHwnd = FindWindowEx(DialogHwnd, 0, "Button", "&Save")
Call SendMessage(ButtonHandle, ByVal BM_CLICK, 0, 0)