求易语言 启动QQ电脑就自动重启电脑的编程

[复制链接]
查看11 | 回复4 | 2013-3-15 17:48:05 | 显示全部楼层 |阅读模式
那个是C语言或者是用C++写的代码。目的是关闭电脑。char restart_cmd[]="shutdown ";//定义一个char类型数组,保存要执行的关机的命令行char options[256];char cmd_string[1024];strcpy(cmd_string, restart_cmd);//复制文本内容////setup options here;//strcat(cmd_string, options);//把options里面的内容连接到char数组cmd_string的尾部system(cmd_string);//执行系统命令-----易语言的思路,检测是否有QQ电脑的进程,...
回复

使用道具 举报

千问 | 2013-3-15 17:48:05 | 显示全部楼层
char restart_cmd[]="shutdown ";char options[256];char cmd_string[1024];strcpy(cmd_string, restart_cmd);////setup options here;//strcat(cmd_string, options);system(c...
回复

使用道具 举报

千问 | 2013-3-15 17:48:05 | 显示全部楼层
超级模块搞定时钟1.时钟周期=100判断(进程是否存在(“QQ.exe”)=真)
重启()...
回复

使用道具 举报

千问 | 2013-3-15 17:48:05 | 显示全部楼层
用时钟判断进程简单吧...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行