We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252f5ed commit a72961eCopy full SHA for a72961e
src/lib.rs
@@ -2223,9 +2223,12 @@ unsafe extern "fastcall" fn room_form(room_id: usize) -> u32 {
2223
#[link(name = "user32")]
2224
unsafe extern "system" {
2225
fn GetActiveWindow() -> HANDLE;
2226
+ fn keybd_event(bVK: u8, bScan: u8, dwFlags: u32, dwExtraInfo: isize);
2227
fn SetForegroundWindow(hwnd: HANDLE) -> BOOL;
2228
}
2229
+ keybd_event(0xA5,0,0,0); //send alt keycode to trick windows into allowing the jump
2230
SetForegroundWindow(GetActiveWindow());
2231
+ keybd_event(0xA5,0,0x02,0); //clear alt
2232
2233
if !matches!(result.map(|s| s.success()), Ok(true)) {
2234
let message = UStr::new(format!(
0 commit comments