没有合适的资源?快使用搜索试试~ 我知道了~
鼠标控制exe文件
需积分: 14 1 下载量 63 浏览量
2018-02-10
11:23:22
上传
评论
收藏 1KB TXT 举报
温馨提示
试读
2页
exe运行程序只能用键盘操作,这个鼠标控制可以打破界限,让鼠标在exe文件中运用
资源推荐
资源详情
资源评论
#include<cmath>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<windows.h>
using namespace std;
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
struct Button{
int x,y;
const char *name;
int len;
};
void color(int a){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);}
void gto(int x,int y)
{
COORD pos;pos.X=y*2;pos.Y=x;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
Button NewButton(int x,int y,const char *name){
Button t;
t.x=x,t.y=y,t.name=name;
t.len=strlen(name);
return t;
}
bool Preserve(Button A){
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<windows.h>
using namespace std;
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
struct Button{
int x,y;
const char *name;
int len;
};
void color(int a){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);}
void gto(int x,int y)
{
COORD pos;pos.X=y*2;pos.Y=x;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
Button NewButton(int x,int y,const char *name){
Button t;
t.x=x,t.y=y,t.name=name;
t.len=strlen(name);
return t;
}
bool Preserve(Button A){
资源评论
LinHunYoR
- 粉丝: 22
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功