I have a API spy that pulls all the information but I'm so used to using patorjk apy spy that generates all the code for you...
I'm just trying to press down a mouse button on a command button on another program. Does anyone know where to download patorjk api spy or have that program, that could click the generate code for a WM_LBUTTONDOWN i notice on this forum theres 2 different ways to do it postmessage and sendmessage after i read that i got more confused. i have the hwnd number for the button i just need all the code thats required to send the key press , i cant believe how much i suck at api without that api spy
please help.
thanks in advance!
-johndew
p.s. its a window with 2 command buttons that pops up saying Are you away? i want it to click No when ever it pops up... Yes button is default and I want it to click the other button when ever it pops up... Thanks in advance
i notice the hwnd keeps changing but the capation of it doesn't
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public 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
Public Const WM_LBUTTONDOWN = &H201
Public Const WM_LBUTTONUP = &H202
based on this code, click down on the attached form and drag the mouse over the button to generate VB code that'll find the hWnd - you can then just add your up/down bit
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.