IDE - just a thought on Next and Out of Subscript
#16
It's going to be tricky and complicated, and it will require you to learn another programming language. But it might work.

Pick up Autohotkey. Create a script that could read the text from the QB64 runtime error MessageBox. From the message extract the line number. Then have Autohotkey open the QB64 IDE, load in the source code and use the "Goto Line" command and enter the line number automatically.

Autohotkey used to have an "Autospy" feature but it was removed in the release when I last used it years ago. Have to be bogged down with windows classes and that sort of thing. It might not be enough to read the window title to detect if it comes from QB64. What if you have to run more than one program that you created with QB64?

I have done something like this with Psycle, a music-creation application that sadly isn't being developed anymore. I used Autohotkey to automate the load of "pages" of the song document. It wasn't very difficult but had to waste several hours perfecting the job because there is no debugger for Autohotkey scripts. Also because the user has to be attached so much to the CHM file that describes the syntax and the commands.

EDIT: it's going to require some trial and error. Take a look at these pages for starters.

https://www.autohotkey.com/docs/v2/lib/WinGetText.htm
https://www.autohotkey.com/docs/v2/lib/WinActivate.htm
https://www.autohotkey.com/docs/v2/lib/RegExMatch.htm
https://www.autohotkey.com/docs/v2/lib/Send.htm

BTW this would work on Windows only, or on Linux with Wine. There's a Linux-only equivalent but it needs Python and I refuse to invest in it. I want the original article, LOL.
Reply


Messages In This Thread
RE: IDE - just a thought on Next and Out of Subscript - by mnrvovrfc - 05-15-2023, 11:25 AM



Users browsing this thread: 5 Guest(s)