2
votes

I have a very simple script to try and remap my AppsKey (the one on the right hand side of the keyboard, between WinKey and Ctrl) to Shift + F2 for the Uplay overlay.

AppsKey::
    Send, +{F2}
Return

As you can see, it's very basic, however, when I try to use it in-game (Far Cry 3 in this instance), it works erratically. Like sometimes when I press the AppsKey, the overlay opens. Sometimes it doesn't and I have to repeatedly tap the AppsKey for it to finally show up or close.

No, my AppsKey isn't broken. I tried mapping it to something else and it works without problems. I just want some lead as to why it's acting erratically in this case.

1
Big help! Setting a timeout between the key down and key up did the trick. - user400424
@user400424 Please consider answering your own question. - 2501

1 Answers

1
votes

Per the comments, the solution should be akin to this:

AppsKey::
    SendInput, {Shift down}{F2 down}
    Sleep, 50
    SendInput, {Shift up}{F2 up}
return