|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: |
Option Compare Database
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 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
Private Declare Function SendNotifyMessage Lib "user32.dll" Alias "SendNotifyMessageA" (ByVal hwnd As Long, ByVal Msg As Long, wParam As Any, lParam As Any) As Long
Private Declare Function SetActiveWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
Private Const BM_CLICK = &HF5
Private Const WM_LBUTTONDBLCLK = &H203
Private Const WM_LBUTTONUP = &H202
Private Const WM_LBUTTONDOWN = &H201
Private Const BM_SETSTATE = &HF3
Private Const WM_COMMAND = &H111
Private Const WM_CLOSE = &H10
Private Const WM_KEYDOWN = &H100
Private Const WM_CHAR = &H102
Private Const VK_RETURN = &HD
Sub GuardarComo()
Dim r As Long, BtnSave As Long, lngRet As Long
Dim retval As Long
r = FindWindow("#32770", "File Download")
If r > 0 Then
BtnSave = FindWindowEx(r, 0, "Button", "&Save")
If BtnSave > 0 Then
retval = SetActiveWindow(r)
DoEvents
SendMessage BtnSave, BM_CLICK, 0, ByVal 0&
DoEvents
SendNotifyMessage BtnSave, BM_CLICK, 0, vbNullString
'SendMessage BtnSave, WM_LBUTTONDBLCLK, 0, 0
'SendMessage BtnSave, WM_COMMAND, &H1144, &H10370
DoEvents
lngRet = SendMessage(BtnSave, BM_CLICK, 0, vbNullString)
'hwnd_button_hexa = Hex(BtnSave)
'hwnd_hexa = Hex(r)
SendMessage BtnSave, BM_CLICK, ByVal CLng(0), ByVal CLng(0)
SendMessage r, VK_RETURN, ByVal CLng(0), ByVal CLng(0)
End If
'If BtnSave > 0 Then SendMessage BtnSave, WM_LBUTTONDBLCLK, 0, 0
End If
End Sub
|
Advertisement
| Hall of Fame |