鼠标点击速度测试

鼠标点击速度测试

简介

这个软件可以测出你的手速,即CPS(Click per second),每秒鼠标点击次数,你可以通过在10秒的时间内快速的点击鼠标来计算你的CPS。

使用方式

程序语言使用的是英文。

当屏幕上出现“Loading”字样时,说明程序正在加载。

当屏幕上出现“Click Your Mouse to Start!”字样时,意思是点击鼠标以开始,这时就可以点击一下鼠标,程序会倒数3秒,然后出现“Start”字样。

这时就可以开始点击了,最上面是你已经点击的次数,最后程序会输出你的CPS。

我的CPS只有7.7 ... ):

代码

#include

#include

#include

#include

#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)

using namespace std;

HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);

inline void gt(short x, short y) {

--x;

--y;

COORD _GoToPos = {x, y};

SetConsoleCursorPosition(hOut, _GoToPos);

}

inline void HideCursor()

{

CONSOLE_CURSOR_INFO CursorInfo;

GetConsoleCursorInfo(hOut, &CursorInfo);

CursorInfo.bVisible = false;

SetConsoleCursorInfo(hOut, &CursorInfo);

}

int sum, ST, ET;

bool lt = false;

double Time;

bool Mouse_Click(){return KEY_DOWN(MOUSE_MOVED) ^ lt ? lt = !lt : 0;}

int main()

{

printf("Loading...");

HideCursor();

gt(1, 1);

system("cls");

printf("Click Your Mouse to Start!");

while(!Mouse_Click());

system("cls");

gt(1, 1);

printf("3");

Sleep(1000);

gt(1, 1);

printf("2");

Sleep(1000);

gt(1, 1);

printf("1");

Sleep(1000);

gt(1, 1);

printf("Start!");

Sleep(1000);

system("cls");

ST = clock();

do

{

if(Mouse_Click()) ++sum;

ET = clock();

gt(1, 1);

printf("Clicked : %d", sum);

gt(1, 2);

Time = double(ET - ST) / 1000;

printf("Time : %.2lf", Time);

}while(Time <= 10);

gt(1, 3);

printf("CPS : %.2lf", sum / 10.0);

}

黄金推荐

问picacg注册不了怎么办
365bet体坛快讯

问picacg注册不了怎么办

🕒 07-29 💰 9496
阴阳师手游先给鸟还是吸血姬升五星 鸟和吸血姬哪个先升五星
音频+数字藏品,荔枝FM“告白电波”打造声音元宇宙新玩法