Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- //PUBG ADS ENHANCEMENT BY KassadinSupportMain
- //INTENDED FOR USE IN FIRST PERSON MODES
- //This program performs a double right click and holds
- //when the user performs a single right click and holds.
- //Map marking is done with the middle mouse (mouse 3) click.
- //This program is free to be duplicated and used in a legal manner by the public.
- int main(int argc, char* args[])
- {
- bool quit = false;
- bool mouse3hold = false;
- bool hold = false;
- bool programactive = true;
- bool programhold = false;
- bool pollhold = false;
- int pollingrate = 1;
- INPUT ip;
- ip.mi.time = 0;
- ip.mi.dx = 0;
- ip.mi.dy = 0;
- ip.type = INPUT_MOUSE;
- std::cout << "PUBG ADS ENHANCEMENT BY KassadinSupportMain\nDESIGNED FOR FIRST PERSON MODE, SIMPLY RUN THE PROGRAM ALONGSIDE PUBG TO USE\n" << std::endl;
- std::cout << "ONE-CLICK-HOLD ADS ENABLED\nPRESS F8 TO ENABLE OR DISABLE PROGRAM\n" << std::endl;
- std::cout << "CLICKING SCROLL WHEEL PLACES MAP MARKERS" << std::endl;
- std::cout << "CLICKING SCROLL WHEEL TO AIM TRADITIONALLY IS POSSIBLE BUT NOT RECOMMENDED\n" << std::endl;
- std::cout << "POLLING RATE: 500 Hz" << std::endl;
- std::cout << "PRESS F7 TO CHANGE POLLING RATE - 500 Hz RECOMMENDED" << std::endl;
- while (!quit)
- {
- if (GetAsyncKeyState(0x76) < 0 && pollhold == false)
- {
- if (pollingrate == 9)
- {
- pollingrate = 1;
- std::cout << "POLLING RATE: 500 Hz" << std::endl;
- }
- else if(pollingrate == 1)
- {
- pollingrate = 4;
- std::cout << "POLLING RATE: 200 Hz" << std::endl;
- }
- else
- {
- pollingrate = 9;
- std::cout << "POLLING RATE: 100 Hz" << std::endl;
- }
- pollhold = true;
- }
- else if (GetAsyncKeyState(0x76) == 0 && pollhold == true)
- {
- pollhold = false;
- }
- if (GetAsyncKeyState(0x77) < 0 && programhold == false)
- {
- if (programactive == false)
- {
- programactive = true;
- std::cout << "ONE-CLICK-HOLD ADS ENABLED" << std::endl;
- }
- else
- {
- programactive = false;
- std::cout << "ONE-CLICK-HOLD ADS DISABLED" << std::endl;
- }
- programhold = true;
- }
- else if (GetAsyncKeyState(0x77) == 0 && programhold == true)
- {
- programhold = false;
- }
- if (programactive)
- {
- if ((GetAsyncKeyState(0x04) < 0 || GetAsyncKeyState(0x05) < 0 || GetAsyncKeyState(0x06) < 0)&& mouse3hold == false)
- {
- ip.mi.dwFlags = (MOUSEEVENTF_RIGHTDOWN);
- SendInput(1, &ip, sizeof(INPUT));
- Sleep(pollingrate);
- mouse3hold = true;
- }
- else if ((GetAsyncKeyState(0x04) == 0 || GetAsyncKeyState(0x05) == 0 ||GetAsyncKeyState(0x06) == 0) && mouse3hold == true)
- {
- ip.mi.dwFlags = (MOUSEEVENTF_RIGHTUP);
- SendInput(1, &ip, sizeof(INPUT));
- Sleep(pollingrate);
- mouse3hold = false;
- }
- if (GetAsyncKeyState(0x02) < 0 && hold == false && mouse3hold == false)
- {
- ip.mi.dwFlags = (MOUSEEVENTF_RIGHTUP);
- SendInput(1, &ip, sizeof(INPUT));
- Sleep(pollingrate);
- ip.mi.dwFlags = (MOUSEEVENTF_RIGHTDOWN);
- SendInput(1, &ip, sizeof(INPUT));
- hold = true;
- }
- else if (GetAsyncKeyState(0x02) == 0 && hold == true)
- {
- hold = false;
- }
- }
- Sleep(1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement