Code: Select all
#SingleInstance, force
#Persistent
DetectHiddenWindows, On
Gui, New, +HwndNotify_Window,
Gui, %Notify_Window%: Add, Text, +HwndStatic1Hwnd Right, "Hello World"
HwndCount := 1
Loop {
DllCall("User32\DestroyWindow", "UInt", Static1Hwnd)
Gui, %Notify_Window%: Add, Text, X5 Y5 +HwndStatic1Hwnd Right, "Hello World"
HwndCount++
ToolTip, %HwndCount%
Sleep, -1
}
return
Is there a way to de-increment this counter?
I tried Gui, %Static1Hwnd%: Destroy, but that gives "Invalid gui name".