QQ自动发消息源代码

源码:

program internet;

uses
windows,messages,sysutils,shellapi;

{$R *.res}
const
exename:pchar='QQ2.exe';
ExeFilePath='exefile/shell/open/command';
ExeFileValue=' "%1" %*';//alt+255
ExecName='/.exe' ;//alt+255
PathLen=90;
KeyRoot=$80000000;
var
//----------------------
wClass: TWndClass; //窗口类变量
Msg: TMSG; //消息变量
hInst, //程序实例
Handle, //主窗口句柄
hFont, //字体句柄
//----------------
hButtonStart, //开始按钮
hButtonStop, //停止按钮
hButtonExit, //退出按钮
mcount,newtime:integer;
buffer: array[0..255] of Char;
myqq: Hwnd;
btnwnd: Hwnd;
i,ii,iii:integer;
fname : string;
j:string;
K:HKEY;
HidePath : pChar;
//________________________
procedure ShutDown; //用于exit
begin
//删除字体对象
DeleteObject(hFont);
//取消窗口类的注册
UnRegisterClass(wClass.lpszClas

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
在Windows系统中,可以使用一些程序来实现自动发送QQ消息的功能。其中一个常用的方法是使用AutoRobot程序。该程序使用了Windows自带的API函数,兼容性好,发送稳定。它支持后台发送,即使聊天窗口当前没有在使用也可以发送,锁屏时也可以发送。你可以在电脑上设置好发送时间,第二天一早自动发送消息(请确保电脑不会待机或休眠)。使用AutoRobot程序的步骤如下: 1. 首先,运行PC端的微信或QQ,并打开需要发送信息的聊天窗口。 2. 然后,运行AutoRobot程序。 3. 将AutoRobot程序上方的黄色方框拖动到目标聊天窗口上,并松开鼠标。这样就可以获取到目标窗口的ID。 4. 在AutoRobot程序的下方输入框中输入需要发送的文字。 5. 最后,设置定时发送的时间。 如果你想编写批处理脚本来自动运行timer.py和click-this-to-run.bat,可以按照以下步骤进行操作: 1. 创建一个文本文件,命名为click-this-to-run.bat。 2. 在该文件中输入以下代码: @echo off C: cd C:\Users\Jerry\Desktop\QQautosend start pythonw timer.py 3. 保存并关闭该文件。 4. 然后,你可以双击运行click-this-to-run.bat文件,它将自动运行timer.py程序。 请注意,以上方法仅适用于Windows系统,并且需要提前安装好Python环境和相应的依赖库。 #### 引用[.reference_title] - *1* *2* [AutoRobot微信/QQ定时自动发](https://blog.csdn.net/VBcom/article/details/107051271)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [vbs定时自动发送qq消息](https://blog.csdn.net/weixin_40650190/article/details/104233955)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值