mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Fixed: fixed windows int type
This commit is contained in:
parent
7103f6b891
commit
4eea01b88d
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
#if defined(IS_WINDOWS)
|
||||
HWND GetHwndByPid(DWORD dwProcessId);
|
||||
|
||||
void WIN32_KEY_EVENT_WAIT(MMKeyCode key, DWORD flags, int32_t pid) {
|
||||
void WIN32_KEY_EVENT_WAIT(MMKeyCode key, DWORD flags, uiprint pid) {
|
||||
win32KeyEvent(key, flags, pid, 0);
|
||||
Sleep(DEADBEEF_RANDRANGE(0, 1));
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ static io_connect_t _getAuxiliaryKeyDriver(void) {
|
|||
#endif
|
||||
|
||||
#if defined(IS_WINDOWS)
|
||||
void win32KeyEvent(int key, MMKeyFlags flags, int32_t pid, int32_t isPid) {
|
||||
void win32KeyEvent(int key, MMKeyFlags flags, uintptr pid, int8_t isPid) {
|
||||
int scan = MapVirtualKey(key & 0xff, MAPVK_VK_TO_VSC);
|
||||
|
||||
/* Set the scan code for extended keys */
|
||||
|
|
|
|||
Loading…
Reference in a new issue