WindowSpy v2 Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

WindowSpy v2

Post by burque505 » 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:

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.
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

User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: WindowSpy v2  Topic is solved

Post by TheArkive » 19 Oct 2021, 15:07

Just double-checking, you are not using beta.2? But using beta.1?

EDIT: I'm currently on beta.1 with no issues. I'll help replicate if you can give more info.

burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: WindowSpy v2

Post by burque505 » 19 Oct 2021, 15:44

Thanks, it is indeed beta.1. I've heard there are issues with beta.2.

burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: WindowSpy v2

Post by burque505 » 19 Oct 2021, 17:10

Hi, @TheArkive, mystery no more. What I thought was AHK_2 beta.1 was, in fact, AHK_H_2 beta.1. :headwall: It turns out Ahk-EXE-swapper won't import AHK_L_2 beta.1 at all, so I used the new AHK2EXE with the 64-bit AutoHotkey2-beta.1 and compiled it. Working like a charm.
Sorry for all the red herrings, and now for sure I will start using your portable installer.
Best regards,
burque505

User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: WindowSpy v2

Post by TheArkive » 20 Oct 2021, 01:43

@burque505
No worries.

You can use any versions of ahk with my portable installer.

Post Reply

Return to “Ask for Help (v2)”