Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
模拟操作程序(CreateProcess,SendMessage) - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章


1. 创建进程并获取其句柄

如果目标程序已经打开,可以用 FindWindow 函数查找句柄

如果程序未打开,可以使用 CreateProcess 函数创建进程并获取到句柄,百科:https://baike.baidu.com/item/CreateProcess/11050419 


2. 利用 SendMessage 模拟消息(mX与mY为坐标)

SendMessage(hwnd, WM_LBUTTONDOWN, VK_LBUTTON, mX + mY * 65536);
SendMessage(hwnd, WM_LBUTTONUP, 0, mX + mY * 65536);

可以参考 https://blog.csdn.net/AiFengipeng/article/details/112758075 



返回首页


Copyright (C) 2018-2024 huidong