Hi all,
I have an application which goes out to various websites and tries to down load info, on one occasion it finds a .csv file and i am then presented with the usual "File Download" box with the OPEN, SAVE and CANCEL buttons, of which i want to press save.
Does anyone know how to do this ??
I have been trying the findwindow and findwindoxex API's but as the "File Download" box appears my VB application stops until a button is pressed manually.
awnd = FindWindow(vbNullString, "MyApplication")
hwnd = FindWindowEx(awnd, 0, vbNullString, "File Download")
DoEvents
If hwnd <> 0 Then
lObjhWnd = FindWindowEx(hwnd, 0, "Button", "Save")
DoEvents
iii = SendMessage(lObjhWnd, BM_CLICK, 0, ByVal 0&)
bFoundFileDownload = True
DoEvents
End If
DoEvents
Any help would be appreciated.
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).