WindowSpy v2
Posted: 19 Oct 2021, 15:04
Hi, I'm trying to use @TheArkive's WindowSpy2 with AHK_2 beta 1, Win10 Pro 64-bit. The GUI appears for a moment, but I get this error message and then the program exits:
Is it just me? I'm not getting any error messages about "Invalid memory read/write" with other scripts for AHK_2 beta 1. It worked great as of a138, if I recall.
Regards,
burque505
Code: Select all
Critical Error: Invalid memory read/write.
Line#
155: ovAllText := WinGetTextFast(true)
156: }
158: UpdateText("Ctrl_VisText", ovVisText)
159: UpdateText("Ctrl_AllText", ovAllText)
160: }
167: {
168: controls := WinGetControlsHwnd()
172: buf := Buffer(WINDOW_TEXT_SIZE * 2,0)
174: text := ""
176: Loop controls.Length
176: {
177: hCtl := controls[A_Index]
178: If !detect_hidden && !DllCall("IsWindowVisible", "ptr", hCtl)
179: Continue
The program is now unstable and will exit.
Regards,
burque505