Full macro CF _ FUCK con truc xinh
Fry
c_cpp
a year ago
2.3 kB
9
Indexable
#include <iostream> #include <Windows.h> #include <stdio.h> #include <iostream> #include <thread> #include <chrono> typedef int(__stdcall* lpfun_DD_todc)(int); typedef int(__stdcall* lpfun_DD_btn)(int btn); typedef int(__stdcall* lpfun_DD_mov)(int x, int y); typedef int(__stdcall* lpfun_DD_movR)(int dx, int dy); typedef int(__stdcall* lpfun_DD_whl)(int whl); typedef int(__stdcall* lpfun_DD_key)(int code, int flag); typedef int(__stdcall* lpfun_DD_str)(char* str); lpfun_DD_todc dd_todc; //VK code to ddcode lpfun_DD_mov dd_movR; //Mouse move rel. lpfun_DD_btn dd_btn; //Mouse button lpfun_DD_mov dd_mov; //Mouse move abs. lpfun_DD_whl dd_whl; //Mouse wheel lpfun_DD_key dd_key; //Keyboard lpfun_DD_str dd_str; //Input visible char int init() { HMODULE hinst = LoadLibraryW(L"driver.dll"); if (hinst == nullptr) { return -1; } dd_todc = (lpfun_DD_todc)GetProcAddress(hinst, "DD_todc"); dd_btn = (lpfun_DD_btn)GetProcAddress(hinst, "DD_btn"); dd_mov = (lpfun_DD_mov)GetProcAddress(hinst, "DD_mov"); dd_movR = (lpfun_DD_mov)GetProcAddress(hinst, "DD_movR"); dd_whl = (lpfun_DD_whl)GetProcAddress(hinst, "DD_whl"); dd_key = (lpfun_DD_key)GetProcAddress(hinst, "DD_key"); dd_str = (lpfun_DD_str)GetProcAddress(hinst, "DD_str"); if (dd_todc && dd_movR && dd_btn && dd_mov && dd_whl && dd_key && dd_str) { int st = dd_btn(0); if (st == 1) { return 1; } } else { return -2; } } int main() { init(); while (true) { while (GetAsyncKeyState(VK_LBUTTON) & 0x8000) { std::cout << "send click\n"; //int ddcode = 408; ////down key //dd_key(ddcode, 1); //1==down£¬2==up //Sleep(30); //may, delay 1-120ms, ////up key //dd_key(ddcode, 2); // dd_btn(1); //1==L.down, 2==L.up, 4==R.down, 8==R.up, 16==M.down, 32==M.up Sleep(8); dd_btn(2); //delay 25ms Sleep(20); } } std::cout << "Hello World!\n"; }
Editor is loading...
Leave a Comment