Thank you, now i see the tray tip alt up also with you help, but when i repress 5 to unlock Alt key, is see "alt up" message but it still pressed, i need to press one time the Alt key phisically on keyboard. U can try open a notepad and press f or m u see that open the menu
This is my entire script
Code: Select all
#SingleInstance Force
#MaxThreadsPerHotkey 2
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; only run this script if Diablo window is active
;#IfWinActive, Diablo II: Resurrected
; If the script is not elevated, relaunch as administrator and kill current instance:
full_command_line := DllCall("GetCommandLine", "str")
if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)"))
{
try ; leads to having the script re-launching itself as administrator
{
if A_IsCompiled
Run *RunAs "%A_ScriptFullPath%" /restart
else
Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
}
ExitApp
}
5::
!5::
Toggle := !Toggle
If not Toggle {
;Send {Alt up}
Send {Alt}
TrayTip "alt up", "alt up"
} else {
Send {Alt down}
TrayTip "alt down", "alt down"
}
there is something that interfere?
ty for the help