Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <string>
- #include <cstdlib>
- using namespace std;
- bool click;
- int x;
- int y;
- HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
- COORD CursorPosition;
- void Auth() {
- cout << "Hello, this is an anti-afk randomizer made by Bloopdog! \n";
- cout << "J toggles on and K toggles off";
- }
- POINT point;
- void Randomizer() {
- if (GetCursorPos(&point)) {
- cout << point.x << "," << point.y << "\n";
- }
- Sleep(2);
- CursorPosition.X = x;
- CursorPosition.Y = y;
- SetConsoleCursorPosition(console,CursorPosition);
- Sleep(2);
- CursorPosition.X = x;
- CursorPosition.Y = y;
- SetConsoleCursorPosition(console,CursorPosition );
- }
- int main() {
- Auth();
- Randomizer();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment