Home > Back-end >  C how to automatically click button on the page?
C how to automatically click button on the page?

Time:10-03

I want to do a program, but I don't know how to write ~ ~ and the intercept window click on the button code automatically save some pictures again of

CodePudding user response:

Hope to have a sample code, I don't understand the way of thinking ~ ~

CodePudding user response:

The simplest screenshots find figure is in the desert plug-in
If you just have to do is to click button Windows message and this is the background click
SendMessage (HWND, WM_LBUTTONDOWN, 0, (y<16) + x);
SendMessage (HWND, WM_LBUTTONUP, 0, (y<16) + x);

CodePudding user response:

refer to the second floor response:
the simplest screenshots find figure is in the desert plug-in
If you just have to do is to click button Windows message and this is the background click
SendMessage (HWND, WM_LBUTTONDOWN, 0, (y<16) + x);
SendMessage (HWND, WM_LBUTTONUP, 0, (y<16) + x);

I want to ask this is the need to give the mouse button or value, or automatically obtain, then there is no complete code, the main thing is that I don't understand completely section I don't know what is the most main header files needed?

CodePudding user response:

reference dxfjdvsijdfhiv reply: 3/f

Quote: refer to the second floor response:

The simplest screenshots find figure is in the desert plug-in
If you just have to do is to click button Windows message and this is the background click
SendMessage (HWND, WM_LBUTTONDOWN, 0, (y<16) + x);
SendMessage (HWND, WM_LBUTTONUP, 0, (y<16) + x);

I want to ask this is the need to give the mouse button or value, or automatically obtain, then there is no complete code, the main thing is that I don't understand completely section I don't know what is the most main header files needed?


How to say that this control simulation under specific you can baidu browser can directly click on the button

CodePudding user response:

reference 4 floor response:
Quote: reference dxfjdvsijdfhiv reply: 3/f

Quote: refer to the second floor response:

The simplest screenshots find figure is in the desert plug-in
If you just have to do is to click button Windows message and this is the background click
SendMessage (HWND, WM_LBUTTONDOWN, 0, (y<16) + x);
SendMessage (HWND, WM_LBUTTONUP, 0, (y<16) + x);

I want to ask this is the need to give the mouse button or value, or automatically obtain, then there is no complete code, the main thing is that I don't understand completely section I don't know what is the most main header files needed?


How to say that this control simulation under specific you can baidu browser can directly click on the button


Okay, I try thank you
  • Related