My Technical Notes

Friday, 22 February 2013

Detecting if EXCEL.exe is active using Autohotkey

To detect if an Excel window is currently active, we can use:


WinGet, exeName, ProcessName, A
if (exeName = "excel.exe") 
{
    MsgBox, Excel window is active
}
else 
{
    MsgBox, Excel is not active
}

No comments: