and only show the desktop (must use minimize, not "show desktop" button)... and watch the fireworks! The ToolTip grows to the size of Texas until you run out of memory!
Seems to be related to a combination with:
1. The variable recieved (winTitle) when using WinGetTitle
2. Using concatination with this variable (or variables associated with the winTitle var) (winTitle seems to grow recursively with text that it's concatinated with - why??)
Trying to save winTitle into a separate variable and using that variable to concatinate still results in the same issue
3. Displaying result as ToolTip (msgbox doesnt seem to do this)
4. Minimizing the single window to show only the desktop.
Take any one of these out of the equation and the problem goes away.
I'm thinking WinGetTitle is the culprit but after many hours with trial and error debugging, I throw up my hands!
Windows7 SP1 AKH 1.1.26.00
Code: Select all
#Persistent
SetTimer, Mouse_Window_Info, 100
return
Mouse_Window_Info:
Mouse_Window_Info()
return
Mouse_Window_Info() {
WinGetTitle, winTitle, A
tt := "Active window Title is: " . winTitle
ToolTip, % tt
}