Search ProofOfProgress Blog

Tuesday, April 5, 2016

Get Class Of Active Window AHK

So, I was reading all through the documentation looking for a:
Since there is a WinGetTitle
And a WinGetClass

Turns out:
WinGetClass's behavior IS to get the class of the active window.

This sample code will display the class name of the active window
when you press the enter key:

 ;theClass = class of active window.
 WinGetClass, theClass, A
 msgBox %theClass%

No comments:

Post a Comment