Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions WindowSpy.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ WinSpyGui() {
Global oGui

try TraySetIcon "inc\spy.ico"
try TraySetIcon "UX\inc\spy.ico" ; for CreateWindowSpyRedirect
DllCall("shell32\SetCurrentProcessExplicitAppUserModelID", "wstr", "AutoHotkey.WindowSpy")

oGui := Gui("AlwaysOnTop Resize MinSize +DPIScale","Window Spy for AHKv2")
Expand Down Expand Up @@ -135,8 +136,8 @@ TryUpdate() {

if (curCtrl) {
ctrlTxt := ControlGetText(curCtrl)
WinGetClientPos(&sX, &sY, &sW, &sH, curCtrl)
ControlGetPos &cX, &cY, &cW, &cH, curCtrl
WinGetClientPos(&sX, &sY, &cW, &cH, curCtrl)
ControlGetPos &cX, &cY, &sW, &sH, curCtrl

cText := "ClassNN:`t" curCtrlClassNN "`n"
. "Text:`t" textMangle(ctrlTxt) "`n"
Expand Down