My question is: Is it possible to detect which part of the StatusBar I am clicking? The WindowSpy tool seems unable to read the StatusBar text. Is the only option to read the coordinates of the mouse to determine the StatusBar part?
Code: Select all
GUIW := 600, GUIH := 400
Gui, +LastFound +Resize
;Gui, Color, FFFFFF
Gui, Margin, 10, 10
Gui, Add, Button, % " x" 10 " y" 10 " w" 73 " h" 26, % "Button1"
Gui, Add, StatusBar,,
SB_SetParts(200, 200, 200)
SB_SetText("`tTEXT", 3)
Gui, Show, % " w" GUIW " h" GUIH, % "Application"
return ; End automatic execution