Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want create a simple Bot that auto clicks on an topMost dialog bar application if a certain image is loaded to that dialog bar.

That dialog bar shows pubs on it accessing internet.

Normally, when you manually click on that dialog bar, it opens on its homepage page executing Internet Explore.

I am wondering if it is possible!

NB: I am an MSVC 6.0 MFC user :thumbsup:

Thank you anyway ;)
Posted
Updated 1-Mar-22 8:06am
v2

1 solution

1.) normally you can't post any messages to another process.
2.) but you can register a system wide hook 'SetWindowsHookEx' (WH_CALLWNDPROCRET) to enter the process (the hook procedure must be in a dll).
3.) so you can for instance in respond to a WM_INITDIALOG message post a message to the process message queue (WM_COMMAND, WM_LBUTTONDOWN and so on).
Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900