Advertisement
encoree1996

Untitled

Nov 11th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout<<"dziala"<<endl;
  9.     HWND fifa = FindWindowA(NULL, "FIFA 14");
  10.     WPARAM wParam = 0x41;
  11.     while(true){
  12.  
  13.         if(GetAsyncKeyState(0x4D)){
  14.  
  15.             cout<<"Wcisnales M [STRZAL]"<<endl;
  16.             SendMessage(fifa, WM_KEYDOWN, wParam , 0);
  17.             Sleep(300);
  18.             SendMessage(fifa, WM_KEYUP, wParam , 0);
  19.             Sleep(1000);
  20.         }
  21.            
  22.     }
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement