Code: Select all
!f4::
WinGetActiveTitle, windowTitle
WinKill, %windowTitle%
Tooltip, This is working
SetTimer, ToolTipOff, -5000
Return
Code: Select all
!f4::
WinGetActiveTitle, windowTitle
WinKill, %windowTitle%
Tooltip, This is working
SetTimer, ToolTipOff, -5000
Return
Look at the WinGet doc. For example:deets wrote:get the exe name of the ACTIVE WINDOW
Code: Select all
WinGet,ActiveExeName,ProcessName,A
Code: Select all
#SingleInstance, Force
If !A_IsAdmin
Run *RunAs "%A_ScriptFullPath%"
!F4::
WinGet, PID, PID, A
WinClose, A,, .5 ; first gently
RunWait, taskkill /pid %PID%,, hide
Return ; then radically