Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- int main()
- {
- cout<<"dziala"<<endl;
- HWND fifa = FindWindowA(NULL, "FIFA 14");
- WPARAM wParam = 0x41;
- while(true){
- if(GetAsyncKeyState(0x4D)){
- cout<<"Wcisnales M [STRZAL]"<<endl;
- SendMessage(fifa, WM_KEYDOWN, wParam , 0);
- Sleep(300);
- SendMessage(fifa, WM_KEYUP, wParam , 0);
- Sleep(1000);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement