I cannot confirm this behavior. It worked properly for me when I put it into my test script. My auto-execute section, in case it makes any difference, is this:
Code: Select all
#If
SetWorkingDir, %A_ScriptDir%
#SingleInstance, Force
SetTitleMatchMode, 2
SetKeyDelay, 70
SetWinDelay, -1
CoordMode, ToolTip
CoordMode, Mouse, Screen
I am running AHK 32-bit Unicode v1.1.23.01 on Windows 8.1.
A suggestion for you may be doing this:
Code: Select all
F1::
Menu, MyMenu, Show
Menu, MyMenu, Hide
Menu, MyMenu, Show
return
However, if there is a perceptible flicker everytime you do this, you might work around it with a variable:
Code: Select all
F1::
If !recurrent
{
Menu, MyMenu, Show
Menu, MyMenu, Hide
recurrent:=true
}
Menu, MyMenu, Show
return
So only one Show is executed on the subsequent F1 presses.