Any way to suppress alt up event in a remap that uses alt?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jdunning
Posts: 1
Joined: 17 Mar 2016, 14:34

Any way to suppress alt up event in a remap that uses alt?

19 Jan 2018, 20:36

I've got a bunch of cursor control remaps that I've used for a long time in apps like Chrome and Slack, most of which include alt in the shortcut. In the Win7 version of Slack, they work fine, but in Windows 10, pressing alt opens the app's menu as a popup. This seems to be a change in the Electron platform that Slack uses to wrap their web app as a desktop app.

The problem is, if I use a remap like this to remap ctrl-alt-J to ctrl-left arrow:

Code: Select all

^!j::SendInput ^{Left}
The cursor moves, but then the Slack menu pops up, even without releasing the physical alt key. So somehow, Slack heard an alt up event, which triggers the menu, even though I haven't released the alt key.

Is there any way to suppress the alt up event from being triggered after I press the shortcut keys, so that the app doesn't see it?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: zerox and 325 guests