Is there a way to particular select a point on a screen???

Eg. There is a (back) button on the program, I want to write a C/C++ program to just select on that button.

Lot of help =)

Recommended Answers

All 3 Replies

Is this button always at the same location on the screen?

I tried to help you before. Anyway, look into the SendMessage function in the windows api and send WM_LBUTTONDOWN/WM_LBUTTONUP.

If the display of the button is a standard windows button, you can also find the window handle of the button and use SendMessage with BM_CLICK to simulate a click.

yes, the button is always at the same location.

It is not a standard windows button. So i will look into the SendMessage function.

Thanks a lot=)

SendMessage with WM_LBUTTONDOWN/WM_LBUTTONUP should do the trick. You just have to determine the coordinates to feed it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.