I wanted him to hide it as a switch when he returned to 'F9'.
The logic I paint here has gone perfectly for a ToolTip that with a key I painted and erased.
Code: Select all
GLOBAL menuMostrado := false
Cancelar:
Return
F9::
if (%menuMostrado%) {
;pintarMensaje("a")
menuMostrado = false
SendInput {Esc} ;simular 'Esc' para cerrar el menú
} else {
;pintarMensaje("b")
menuMostrado = true
pintarMenu()
}
Return
pintarMenu() {
Menu, menuProgramas, Add
Menu, menuProgramas, deleteAll
;Sies
Menu, submenu_sies, Add, &IC, sies_IC
Menu, submenu_sies, Icon, &IC, iconos\sies.ico ,, %TAMANO_ICONO_MENU_NIVEL_2%
; long etc
}
The second idea that occurred to me was to call SendInput {Esc} as a touch to Escape would also work, but it does nothing.
So I could not.