Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simulate left click on a dialog control
#1
I am wondering about the smartest way to simulate with the software a left click on a dialog control. Any advice is much appreciated.
#2
Something like this?

Macro sendmessage button
Code:
Copy      Help
SendMessage id(26 w) BM_CLICK 0 0 ;; presses button with ID 26
#3
Thank you for your advice. I will certainly change what I am using at present :

SendMessage c WM_LBUTTONDOWN 1 0
0.02
SendMessage c WM_LBUTTONUP 0 0

Best regards!
#4
BM_CLICK may fail if the window is not active.  Normally i try first qm button functions  first (but+ ect). Works in many windows and window doesn't  need to be active. If those dont work then i usually try  WM_LBUTTONDOWN and up combo . There  are many possibilities .


Forum Jump:


Users browsing this thread: 1 Guest(s)