Search found 150 matches

by freespacing
15 Jan 2020, 08:08
Forum: Ask for Help (v1)
Topic: downloadable documentation for offline use?
Replies: 8
Views: 6051

Re: downloadable documentation for offline use?

"C:\Program Files\AutoHotkey\AutoHotkey.chm" Converted that to Epub via Calibre. It's not terrible, though the TOC is iffy — you need to look at the online docs, check which sections interest you and set bookmarks in the Epub. Specifically wanted documentation for all the GUI-related features, didn...
by freespacing
15 Jan 2020, 07:32
Forum: Ask for Help (v1)
Topic: Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved
Replies: 6
Views: 1220

Re: Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved

Thank you very much, @just me !
Exactly the information I was looking for.

Wishing you all a great day.
by freespacing
14 Jan 2020, 21:46
Forum: Ask for Help (v1)
Topic: Going Blind about why Function ignores passed value Topic is solved
Replies: 10
Views: 1189

Re: Going Blind about why Function ignores passed value Topic is solved

A thousand thanks, @gregster and @Chunjee.

Haven't coded in AHK for a while and I had forgotten that.
Wishing you both a terrific end of the week.
by freespacing
14 Jan 2020, 20:52
Forum: Ask for Help (v1)
Topic: Going Blind about why Function ignores passed value Topic is solved
Replies: 10
Views: 1189

Going Blind about why Function ignores passed value Topic is solved

A function sets the default value of an argument as five (argument name: skip_line_after_every ). I call the function with the value of zero Within the function, the value is five! Looked at it until I went blind, wondering if with a different set of eyes it might jump out at someone else. Function...
by freespacing
13 Jan 2020, 15:12
Forum: Ask for Help (v1)
Topic: Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved
Replies: 6
Views: 1220

Re: Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved

Should it not be DestroyOnClose() instead of DestroyOnGUIClose() ? The help file is a bit confusing on this. In addition the help file does not specifically mention the use of functions, only labels. Yes, you're absolutely right. Just discovered that the hard way. Will edit the original question. T...
by freespacing
13 Jan 2020, 12:51
Forum: Ask for Help (v1)
Topic: Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved
Replies: 6
Views: 1220

Gui, %A_Gui%:Destroy vs. Gui, Destroy Topic is solved

I'm only now starting to dive into the marvelous world of GUIs. Regarding event handlers such as GUIClose , I have a question: within GUIClose , if several Guis are running, is Gui, unambiguous? (I.e. is there ever a need to specify the GUI name or number?) I'm assuming that since it's a handler, Gu...
by freespacing
12 Jan 2020, 19:52
Forum: Old Topics
Topic: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Replies: 423
Views: 429192

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Howdy everyone.

Has any one found a workaround to the "AutoGUI has not been adapted to High-DPI display scaling" error message? A setting in Window?

Thanks in advance for any thoughts.
by freespacing
05 Jan 2020, 13:29
Forum: Ask for Help (v1)
Topic: WinClip: not understanding how to get html clip as utf-8
Replies: 5
Views: 1823

Re: WinClip: not understanding how to get html clip as utf-8

Thank you. Posted on that thread. And adding a parameter probably makes more sense: GetHtml(enc:="UTF-8") { if !( clipSize := this._fromclipboard( clipData ) ) return "" if !( out_size := this._getFormatData( out_data, clipData, clipSize, "HTML Format" ) ) return "" return strget( &out_data, out_siz...
by freespacing
05 Jan 2020, 13:28
Forum: Scripts and Functions (v1)
Topic: WinClip - AHKv2 Compatibility
Replies: 35
Views: 15819

Re: WinClip - AHKv2 Compatibility

As mentioned on this thread , WinClip does not paste the html clipboard properly when it has special characters (e.g., a Spanish word such as añadió ) The change below fixed it, but wondering if there's a reason for how it is at the moment? Original WinClip.ahk: GetHtml() { if !( clipSize := this._f...
by freespacing
05 Jan 2020, 08:40
Forum: Ask for Help (v1)
Topic: WinClip: not understanding how to get html clip as utf-8
Replies: 5
Views: 1823

Re: WinClip: not understanding how to get html clip as utf-8

Update: I looked inside WinClip.ahk, and a small tweak seemed to resolve it: Original: GetHtml() { if !( clipSize := this._fromclipboard( clipData ) ) return "" if !( out_size := this._getFormatData( out_data, clipData, clipSize, "HTML Format" ) ) return "" return strget( &out_data, out_size, "CP0" ...
by freespacing
05 Jan 2020, 08:23
Forum: Ask for Help (v1)
Topic: WinClip: not understanding how to get html clip as utf-8
Replies: 5
Views: 1823

Re: WinClip: not understanding how to get html clip as utf-8

guest3456 wrote:
05 Jan 2020, 01:08
are you running Unicode version of AHK, or ANSI?

this will tell you:

Code: Select all

MsgBox, %A_IsUnicode%
Unicode. (The output is 1.)
by freespacing
05 Jan 2020, 00:04
Forum: Ask for Help (v1)
Topic: WinClip: not understanding how to get html clip as utf-8
Replies: 5
Views: 1823

WinClip: not understanding how to get html clip as utf-8

Howdy all, First off, happy new year. Thanks to WinClip by Deo, I'm very close to a simple goal: a shortcut which, once I've copied text from a rich context (such as a web page) that sends html to the html clipboard, pastes that html as-is , for instance in a text editor. The only thing that is not ...
by freespacing
19 May 2019, 13:10
Forum: Editors
Topic: My new favorite AHK editing environment: EditPad with MishMash
Replies: 18
Views: 12303

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 (v1)
Topic: Making a syntax-highlighting scheme for AHK: Full List of Special Words?
Replies: 6
Views: 1820

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 (v1)
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 5883

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 (v1)
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 5883

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 (v1)
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 5883

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 (v1)
Topic: QuickSort: any thoughts to improve this?
Replies: 22
Views: 5883

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 (v1)
Topic: Base64 decode and create file from clipboard Topic is solved
Replies: 10
Views: 3549

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

Go to advanced search