Search found 137 matches

by freespacing
08 Feb 2021, 10:49
Forum: Tips and Tricks
Topic: jeeswg's sort algorithms mini-tutorial
Replies: 1
Views: 2092

Re: jeeswg's sort algorithms mini-tutorial

Just came across your post and wow, that's terrific, @jeeswg Last year I posted a version of QuickSort for comments, but as some pointed out, it failed for large lists because of the recursion. Yours fixes that. Would you say that your "QuickSort in place" is your most efficient AHK sort at the mome...
by freespacing
08 Feb 2021, 09:38
Forum: Scripts and Functions
Topic: [v2 Function]Sort function - replace the built in one with something useable
Replies: 11
Views: 2920

Re: [v2 Function]Sort function - replace the built in one with something useable

I made a version for ahk arrays. To note, it copies the array, but it is a very simple implementation. Helgef Your code is way over my head, but I'm extremely interested in it because my own QuickSort recurses and fails for large lists. Would you be willing to share a version compatible wity Autono...
by freespacing
25 Dec 2020, 12:35
Forum: Ask For Help
Topic: [SOLVED] Can't target ipython3.exe console Topic is solved
Replies: 3
Views: 480

Re: Can't target ipython3.exe console Topic is solved

AHKStudent wrote:
25 Dec 2020, 11:51
try running the script as administrator
That worked!!!
Thank you so much. :-)
by freespacing
25 Dec 2020, 11:32
Forum: Ask For Help
Topic: [SOLVED] Can't target ipython3.exe console Topic is solved
Replies: 3
Views: 480

Re: Can't target ipython3.exe console Topic is solved

Also tried:

Code: Select all

#IfWinActive ahk_exe ipython3.exe 
^w::
   WinClose
Return
#IfWinActive
Nothing happens.
Would anyone happen to have a clue as to why hotkeys don't seem to work in that window?
by freespacing
21 Aug 2020, 13:30
Forum: Scripts and Functions
Topic: Navigate between Bookmarks in MS Word
Replies: 3
Views: 1242

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: 1242

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: 2851

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: 1022

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: 1022

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: 1022

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: 1022

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: 1022

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: 38
Views: 224432

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: 38
Views: 224432

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: 1022

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: 628

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: 628

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: 708

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: 708

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: 708

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

Go to advanced search