fork download
  1. PWNFUNC(EmulateKeyPressNULL)
  2. {
  3. LPARAM lParam = (MapVirtualKeyA((UINT)params[2], 0) << 16) + 1;
  4. PostMessageA(NULL, params[1], (WPARAM)params[2], lParam);
  5. return 1;
  6. }
  7. PWNFUNC(EmulateKeyPressGAME)
  8. {
  9. LPARAM lParam = (MapVirtualKeyA((UINT)params[2], 0) << 16) + 1;
  10. PostMessageA(GTAWindowHandle, params[1], (WPARAM)params[2], lParam);
  11. return 1;
  12. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty