Search found 133 matches

by freespacing
21 Aug 2020, 13:30
Forum: Scripts and Functions
Topic: Navigate between Bookmarks in MS Word
Replies: 3
Views: 1142

Re: Navigate between Bookmarks in MS Word

Hi gwarble , thank you for sharing your ideas on this, really appreciate them. Will give it more thought when I find some time. Fortunately not needing to do much in MS Word. It saddens me that after 30+ years on the market they haven't thought to implement something as useful as this! Wishing you a...
by freespacing
02 Aug 2020, 09:00
Forum: Scripts and Functions
Topic: Navigate between Bookmarks in MS Word
Replies: 3
Views: 1142

Navigate between Bookmarks in MS Word

A script by Andy on the old forum inspired me to write something to jump between bookmarks in Microsoft Word. Ctrl + Up / Down are supposed to jump to previous / last bookmarks. It kind of works: we move location in the file, but MS Word's numbering of bookmarks doesn't seem to reflect the ordering ...
by freespacing
22 Jan 2020, 13:33
Forum: Other Utilities & Resources
Topic: Regular Expressions This Series Is Fabulous
Replies: 3
Views: 2779

Re: Regular Expressions This Series Is Fabulous

For advanced regular expressions, RexEgg.
by freespacing
22 Jan 2020, 11:02
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

Helgef wrote:
22 Jan 2020, 10:39
See :arrow: this tutorial by nnnik.
Cheers.
Thank you @Helgef !
printStack() looks fantastic, filling an important gap. Will use it for uncompiled scripts, for which it is designed.
Sadly this particular project is compiled, so for that one I'll have to stick with the above.
by freespacing
22 Jan 2020, 10:44
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

OFF-TOPIC @boiler sounds like we had similar issues. My problems stemmed from wanting the file navigator to show just the functions for that particular file, not for the whole project. The only workaround I found was to open files independently, and that caused AHK Studio to mess up the files. http...
by freespacing
22 Jan 2020, 10:04
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

Just curious whether there is anything in particular about VS Code that you don’t like (at least comparatively), or is it just that you aren’t convinced that it will not corrupt/lose your large files? I had no issue with VS Code and large projects, that was just AHK Studio. Really wrestled with tha...
by freespacing
22 Jan 2020, 09:55
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

But the addition of ListLines (or just calling it up via the script's icon) might give you a better idea, which line triggered the exception, if you really want to use catch for debugging purposes Totally agree with you about debugging vs. release messages. And ListLines was exactly what I needed. ...
by freespacing
22 Jan 2020, 08:32
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

How is this more vague than the original msgbox? I mean, assuming you are using a real code editor that shows line numbers, and not standard Notepad. To fix it, you will have to go to that line anyway... It's more vague because the line numbers are wrong. The crash happens on an included file, on l...
by freespacing
22 Jan 2020, 08:20
Forum: Offtopic
Topic: Learn how to protect your Intellectual Property in this free AHK webinar
Replies: 29
Views: 212103

Re: Learn how to protect your Intellectual Property in this free AHK webinar

Hi SOTE Thank you for your detailed reply, full of interesting thoughts about reflexions. a search for encrypt or obfuscate will turn up lots of posts on the subject. Of course I found lots of threads at the time, that's what I meant in my OP by I spent three days chasing black cats down blind alley...
by freespacing
21 Jan 2020, 23:57
Forum: Offtopic
Topic: Learn how to protect your Intellectual Property in this free AHK webinar
Replies: 29
Views: 212103

Re: Learn how to protect your Intellectual Property in this free AHK webinar

your developed script does not have to remain Open Source As of Jan 2020, does anyone know if there a good pathway to obfuscate and/or encrypt source code in compiled scripts? Last time I looked, about a year ago, I spent three days chasing black cats down blind alleys. Asking about something that ...
by freespacing
21 Jan 2020, 23:43
Forum: Ask For Help
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 947

Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

When letting a script crash without handling errors, ahk shows very useful information for debugging: https://i.imgur.com/Y1FefoC.jpg On the other hand, when I wrap the function call and try to get information out of the error object: Catch e { msg := "An exception bubbled up to the top level.`n`n" ...
by freespacing
20 Jan 2020, 08:29
Forum: Ask For Help
Topic: GUI: how to test the Hwnd of a control? Topic is solved
Replies: 3
Views: 485

Re: GUI: how to test the Hwnd of a control? Topic is solved

Declare [the control handler dynamic variables] as Global inside the function. just me Wow, you're right, and this baffles me! It works even though those variables aren't declared at all in the global scope. :bravo: Here is a full working example (a complete script if someone wants to run it), the ...
by freespacing
19 Jan 2020, 22:27
Forum: Ask For Help
Topic: GUI: how to test the Hwnd of a control? Topic is solved
Replies: 3
Views: 485

GUI: how to test the Hwnd of a control? Topic is solved

On the Gui/Add page , under Controls: Uncommon Styles and Options , the manual states: HwndOutputVar [v1.0.46.01+]: When used with Gui Add, this option stores the window handle (HWND) of the newly created control in OutputVar. For example: Gui, Add, Edit, vMyEdit HwndMyEditHwnd. When within a functi...
by freespacing
19 Jan 2020, 13:14
Forum: Ask For Help
Topic: Correct syntax for new GUI section? Topic is solved
Replies: 7
Views: 650

Re: Correct syntax for new GUI section? Topic is solved

In not sure what you expect, looks correct to me. Edit, it's missing an edit I guess :lol: Okay, I understood. I was missing the ym . Gui, RegexFromFiles:Add, CheckBox, ym Section vGui_v2 HwndCount_overlap gRegexFromFiles_Checkboxes, Overlap Now it works. Thank you for your kind probing, you all!
by freespacing
19 Jan 2020, 13:02
Forum: Ask For Help
Topic: Correct syntax for new GUI section? Topic is solved
Replies: 7
Views: 650

Re: Correct syntax for new GUI section? Topic is solved

Does the xs/ys example from the docs page linked above work for you? gui, add, edit, w600 ; Add a fairly wide edit control at the top of the window. gui, add, text, section, First Name: ; Save this control's position and start a new section. gui, add, text,, Last Name: gui, add, edit, ys ; Start a ...
by freespacing
19 Jan 2020, 12:37
Forum: Ask For Help
Topic: Correct syntax for new GUI section? Topic is solved
Replies: 7
Views: 650

Re: Correct syntax for new GUI section? Topic is solved

Yes, I use xs and ys abundantly. I have a ys on the next line: Gui, RegexFromFiles:Add, CheckBox, xs ys+%ys_offset_match_list% vGui_v3 HwndMatchList_overlap gRegexFromFiles_Checkboxes, Overlap What I am saying is that the Section option is not working. A new column is not created. All the following ...
by freespacing
19 Jan 2020, 12:14
Forum: Ask For Help
Topic: Correct syntax for new GUI section? Topic is solved
Replies: 7
Views: 650

Correct syntax for new GUI section? Topic is solved

Trying to create a new section, but instead of showing the checkbox in a new column, the following line shows it below the previous control. Gui, RegexFromFiles:Add, CheckBox, Section vGui_v2 HwndCount_overlap gRegexFromFiles_Checkboxes, Overlap The GUI size is not constrained in the Show line: Gui,...
by freespacing
17 Jan 2020, 09:00
Forum: Ask For Help
Topic: A_ScriptDir when the script was run from a symlink
Replies: 0
Views: 261

A_ScriptDir when the script was run from a symlink

Hi all, This is a non-urgent question. Something I'm curious about and could come it handy. I've noticed that when a script is run from a symbolic link, A_ScriptDir points to the folder containing the symlink, not to the script's actual executable. Would anyone of you happen to be aware of someone a...
by freespacing
15 Jan 2020, 22:42
Forum: Ask For Help
Topic: Function to create GUI with arbitrary number of EDIT controls Topic is solved
Replies: 2
Views: 411

Re: Function to create GUI with arbitrary number of EDIT controls Topic is solved

Wow, swagfag , so fast and so detailed… you are a legend. Your code is way above my level, but I'm glad about that: I will study it carefully and it will without doubt stretch my mind and ahk skills. Will return if questions about your answer arise, in the meantime marking as solved . Bows and thank...
by freespacing
15 Jan 2020, 20:56
Forum: Ask For Help
Topic: Function to create GUI with arbitrary number of EDIT controls Topic is solved
Replies: 2
Views: 411

Function to create GUI with arbitrary number of EDIT controls Topic is solved

Hi all, Here is a theoretical question It's straightforward to made a function that creates GUIs with arbitrary numbers of EDIT boxes from one to ten (picking ten as an example). Because it's a function, the variables that receive the input must be declared global both within the function and within...

Go to advanced search