自动唱首歌机器人 [英] Auto Clicker Bot

查看:71
本文介绍了自动唱首歌机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个简单的 Bot ,如果将某个图像加载到该对话框中,则会自动单击 topMost 对话框中的应用程序.

该对话框栏显示访问互联网的酒吧.

通常,当您手动单击该对话框时,它会在其首页上打开,执行 Internet Explore .

我想知道是否有可能!

注意:我是 MSVC 6.0 MFC 用户:thumbsup:

无论如何,谢谢;)

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 ;)

推荐答案

1.)通常,您不能将任何消息发布到另一个进程.
2.),但是您可以注册系统范围的钩子"SetWindowsHookEx"(WH_CALLWNDPROCRET)以进入进程(该钩子过程必须在dll中).
3.),例如,您可以在响应WM_INITDIALOG消息后将消息发布到过程消息队列(WM_COMMAND,WM_LBUTTONDOWN等).
祝你好运.
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.


这篇关于自动唱首歌机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆