Advertisement
wzLeonardo

Knives Out MACRO

Mar 28th, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include<windows.h>
  4. using namespace std;
  5.  
  6.  
  7. int main(){
  8. // POINT p;
  9. system("color a");
  10. cout << "==========================================" << endl;
  11. cout << "== KNIVES OUT Macro by z NzLeoGenX_x ==" << endl;
  12. cout << "== KNIVES OUT Macro by z NzLeoGenX_x ==" << endl;
  13. cout << "== Ativar: CapsLock ==" << endl;
  14. cout << "==========================================" << endl;
  15.  
  16. while(true){
  17. Sleep(20);
  18.  
  19. //GetCursorPos(&p);
  20. //cout << "X: " << p.x << endl;
  21. //cout << "Y: " << p.y << endl;
  22. //system("cls");
  23.  
  24. //0x14 = caps lock
  25. //codigos: https://msdn.microsoft.com/pt-br/library/windows/desktop/dd375731(v=vs.85).aspx
  26. if(GetAsyncKeyState(0x14) & 0x8000){
  27. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  28. Sleep(50);
  29. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  30.  
  31. //Tem que deixar um Sleep aqui ou buga
  32. // SetCursorPos(p.x -1 ,p.y + 2);
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement