in my V1 script I had
Code: Select all
RALT::SendInput("{AppsKey}")
Code: Select all
#LALT::SendInput("{AppsKey}")
Code: Select all
RALT::
{
MsgBox("RALT got pressed.",,"T1)
SendInput("{AppsKey}")
}
![Wink ;)](./images/smilies/icon_e_wink.gif)
Code: Select all
RALT::SendInput("{AppsKey}")
Code: Select all
#LALT::SendInput("{AppsKey}")
Code: Select all
RALT::
{
MsgBox("RALT got pressed.",,"T1)
SendInput("{AppsKey}")
}
Looks like you pasted v2 code there unless you created a function named SendInput() that you haven’t shown.thinkstorm wrote: ↑ in my V1 script I hadto map my right ALT key to the Windows Apps Key (my keyboard doesn't have that key).Code: Select all
RALT::SendInput("{AppsKey}")
Code: Select all
RWIN::
RALT::
#LALT::
SendInput, {AppsKey}
Return
Code: Select all
01 000 d 2.11 LButton
01 000 u 0.28 LButton AutoHotkey
01 000 d 1.03 LButton
01 000 u 0.23 LButton
A5 138 d 1.09 RAlt
A5 138 h u 0.12 RAlt
5D 15D i d 0.00 AppsKey
5D 15D i u 0.00 AppsKey
01 000 d 1.78 LButton
01 000 u 0.09 LButton AutoHotkey
Code: Select all
RALT::
Code: Select all
A5 138 h d 1.45 RAlt
5D 15D i d 0.00 AppsKey
5D 15D i u 0.00 AppsKey
A5 138 s u 0.09 RAlt
Code: Select all
A5 138 d 1.89 RAlt
A5 138 h u 0.12 RAlt
5D 15D i d 0.00 AppsKey
5D 15D i u 0.00 AppsKey
I don't know if your phrasing is just inaccurate or if it is an indication that your understanding is incorrect.in V1 it worked
Code: Select all
RWIN::
RALT::
#LALT::
;ShowOSD("Windows 8: Windows menu / right mouse button")
SendInput, {AppsKey}
Return
Code: Select all
RWIN::
RALT::
#LALT::
{
;ShowOSD("Windows 8: Windows menu / right mouse button")
SendInput("{AppsKey}")
}
Please see whether this helps.Fixed an issue with hotkeys not firing due to a race condition. If a modifier hotkey such as ~*RWin:: called Send or GetKeyState too soon, the OS could report that RWin isn't down, so the hook's modifier state would be "corrected" and hotkeys would wrongly fire or fail to fire. This was likely to occur only if another keyboard hook was installed more recently than the script's own hook, since in that case the OS would not update key state until the other hook's thread has resumed and returned.
Users browsing this forum: joefiesta and 4 guests