Search found 97 matches

by freespacing
19 May 2019, 13:10
Forum: Editors
Topic: My new favorite AHK editing environment: EditPad with MishMash
Replies: 0
Views: 264

My new favorite AHK editing environment: EditPad with MishMash

After pulling my hair over AHK Studio repeatedly messing with my code, I decided to create a syntax-coloring code for EditPad Pro, an editor I've used for years and that has never done me wrong. https://github.com/boolbag/Autohotkey-Goodies/raw/master/Syntax%20Coloring%20Scheme%20for%20EditPad%20Pro...
by freespacing
19 May 2019, 12:53
Forum: Ask For Help
Topic: Making a syntax-highlighting scheme for AHK: Full List of Special Words?
Replies: 6
Views: 383

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

1. Moved to a new repo called Autohotkey Goodies — for anyone who'd like to collaborate 2. Created syntax-coloring scheme to work with EditPad Pro, which for my needs is now my favorite AHK editing enviroment. https://github.com/boolbag/Autohotkey-Goodies/raw/master/Syntax%20Coloring%20Scheme%20for%...
by freespacing
09 May 2019, 08:30
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort: any thoughts to improve this?

Either way I believe it's O(n-squared), as opposed to O(n.log(n)) for quick-sort and merge-sort. Can be efficient for small arrays (in fact the hybrid Tim Sort -- Python standard -- uses Insertion Sort at some stage) but you'll feel a large difference as the set grows. Which takes nothing away from ...
by freespacing
08 May 2019, 09:53
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort: any thoughts to improve this?

Oh, thank you for explaining that, I had forgotten about that way of returning multiple values — so used to returning objects.
by freespacing
08 May 2019, 09:26
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort: any thoughts to improve this?

the iteration var counts how many times Yes, that was clear to me. What I'm not grokking is why it's an argument to the DoSort function, when it's immediately set to zero. Sorry if my question wasn't clear. DoSort(arr, byRef iteration){ ; <<<=== iteration is an argument (...) iteration := 0 ; <<<==...
by freespacing
08 May 2019, 08:51
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort: any thoughts to improve this?

evilC Cool, sorting is fun! At a glance, it looks like badly sorted items are bubbling up, would you say that it is in fact a bubble sort? Didn't try to fully trace the logic. But did notice that at the beginning of DoSort(arr, byRef iteration) you initialize iteration with iteration := 0 , am I mi...
by freespacing
08 May 2019, 06:09
Forum: Ask For Help
Topic: Base64 decode and create file from clipboard Topic is solved
Replies: 10
Views: 486

Re: Base64 decode and create file from clipboard Topic is solved

elModo7 wrote:
08 May 2019, 05:48
I'm deffinitely saving it at least for audio generation from within the script
Yes, it's neat.
That's why I'm curious about use cases. Now I have a hammer, I'm looking for a nail. ;)
by freespacing
08 May 2019, 05:42
Forum: Ask For Help
Topic: Base64 decode and create file from clipboard Topic is solved
Replies: 10
Views: 486

Re: Base64 decode and create file from clipboard Topic is solved

foguetes This is a really interesting question but it makes me curious about the use case. Would you be willing to share in which kind of context you find wav files in base64 that you need to decode? I was trying to think on my side when I might use something like that. The only thing I could come ...
by freespacing
07 May 2019, 05:49
Forum: Scripts and Functions
Topic: "Shortcut files" that launch urls in browser when clicked
Replies: 0
Views: 247

"Shortcut files" that launch urls in browser when clicked

Trivial but useful. Windows has a url extension that is unreliable (not supported by all browsers). The idea of this script is to let you create files with a urls extension (or whatever you like) that contain one or more urls. When you double-click the file, the links (one per line) open in your bro...
by freespacing
06 May 2019, 10:36
Forum: Scripts and Functions
Topic: Decode HTML Entities
Replies: 0
Views: 202

Decode HTML Entities

When it comes to decoding html entities such as & , many posts refer to the ComUnHTML function posted here . My experience with it is that it zaps all line breaks in your original text unless they are already coded as <br> or equivalent. So for those on the same track, if that doesn't suit you, ...
by freespacing
04 May 2019, 08:00
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort: any thoughts to improve this?

EDIT

Indexes no longer need to be contiguous, i.e. will work with:

Code: Select all

a := {1: "carrots", 4: "bananas", 212: 24, 256: "apples", "test": "bananas"}
Instead of looping with an index, the new version clones the original array and pops elements.
by freespacing
04 May 2019, 03:53
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

Re: QuickSort

carno wrote:
04 May 2019, 03:25
Could you provide a concrete example and how this function is implemented?
Great idea. Edited the original post, adding examples and musings. Looking forward to your thoughts.
by freespacing
03 May 2019, 17:46
Forum: Scripts and Functions
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 1257

QuickSort: any thoughts to improve this?

Howdy all! Inviting comment on this QuickSort implementation, adapted from a Python repo. Thinking it would be fun to translate a few useful algorithms. One sensitive part is the number of times data is copied, particularly interested in knowing if there are more efficient ways than the Pushes below...
by freespacing
02 May 2019, 14:36
Forum: Ask For Help
Topic: objects: sort keys by a custom order
Replies: 10
Views: 974

Re: objects: sort keys by a custom order

Howdy all, Since I'm looking at sort functions today and this is the first thread that pops up, thought I'd mention the QuickSort function posted by buliasz shortly after this thread was created, and for which he has a repo on GitHub. Btw this makes me dream of the AHK equivalent of the " Algorithms...
by freespacing
29 Apr 2019, 08:13
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 18
Views: 2029

Re: [Guide] Compiling Ahk_h's source step by step

Thank you @HotKeyIt
Since there's no sln file provided with MinHook and I want to minimize suffering, I think I'll wait until someone releases a pre-compiled versions (as you suggested) done in VS2019. It's probably only a matter of months. ;)

Hope you have a great week.
by freespacing
28 Apr 2019, 13:01
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 18
Views: 2029

Re: [Guide] Compiling Ahk_h's source step by step

Huge thanks to @kyuuuri and everyone else who made this guide possible… starting with HotkeyIt. It's wonderful to have these step-by-step details. Visual Studio 2019 just came out, so I have to ask: has anyone had success following these steps in VS2019? Just upgraded from VS2015 and would prefer no...
by freespacing
28 Apr 2019, 12:30
Forum: Ask For Help
Topic: Decompiling
Replies: 111
Views: 37927

Re: Decompiling

Thank you very much, @SOTE.
That thread looks like a great resource!
by freespacing
27 Apr 2019, 13:35
Forum: Ask For Help
Topic: Decompiling
Replies: 111
Views: 37927

Re: Decompiling

Howdy HotKeyIt, Hope you're well! Excited to try the procedure you mentioned on this thread to prevent decompiling. I get it that I need to recompile Autohotkey_H. Visual Studio 2019 is roaring and ready to go. ;) Here's where I am so far: - cloned https://github.com/HotKeyIt/ahkdll - grepped g_defa...
by freespacing
22 Apr 2019, 10:02
Forum: Scripts and Functions
Topic: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation
Replies: 39
Views: 7563

Re: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation

DigiDon Hi there, I realize you're busy with real life. Got to keep the fridge full. ;) Thought I'd post this question for if you ever have a chance to look at the project again. I find the goal this program is trying to achieve mind-blowing. I love that the documentation goes into so much detail a...
by freespacing
22 Apr 2019, 05:03
Forum: AHK Studio
Topic: AHK Studio
Replies: 1065
Views: 262164

Re: AHK Studio

Studio is not really designed to do that. It is designed to open up a main project and then have all of the files that are included within it to be opened up below it. I do not have anything in place that keeps the files updated across multiple instances of a file being open so the issue you report...

Go to advanced search