Simply send ESC key as if pressed via the keyboard Used to avoid menus during startup.
| 17 | /// Used to avoid menus during startup. |
| 18 | /// </summary> |
| 19 | void SendEscapeKey() { |
| 20 | PostMessage(D3DHooks::GetGameWindow(), WM_KEYDOWN, VK_ESCAPE, 0); |
| 21 | Sleep(30); |
| 22 | PostMessage(D3DHooks::GetGameWindow(), WM_KEYUP, VK_ESCAPE, 0); |
| 23 | } |
| 24 | |
| 25 | /// <summary> |
| 26 | /// Presses Enter. Normally used in a loop to skip most of the login dialog. "Fork in the toaster" method |
no test coverage detected