Search found 13 matches

by Daniel Beardsmore
16 Aug 2018, 13:12
Forum: Scripts and Functions (v1)
Topic: Set permissions for registry, files and folders
Replies: 4
Views: 4671

Re: Set permissions for registry, files and folders

Note the following correction to the OP’s code: + ; Because the powers that be refuse to permit constants + global ADS_SECURITY_INFO_DACL := 4 ⋮ + ; Only update the DACL, otherwise it will try to change the ownership! + sdutil.SecurityMask := ADS_SECURITY_INFO_DACL sdutil.SetSecurityDescriptor(File,...
by Daniel Beardsmore
08 Apr 2018, 13:21
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 147
Views: 150724

Re: Upcoming Ahk2Exe changes

1. When compiling there were often transient file errors when trying to create the .exe. (I keep my sources in a Dropbox folder.) There errors do not occur with the standard version. (I believe that the file handling and error checking in the standard version was greatly enhanced after the fork for...
by Daniel Beardsmore
03 Mar 2017, 12:43
Forum: Wish List
Topic: Constants
Replies: 4
Views: 4216

Re: Constants

I wouldn't suggest using old syntax for a new feature.
by Daniel Beardsmore
01 Aug 2016, 17:52
Forum: AutoHotkey Development
Topic: Co-ordinate-free dialog layout
Replies: 2
Views: 2176

Re: Co-ordinate-free dialog layout

Emulating the v1 GUI was, IMO, a huge mistake. My Windows software is all developed on an antique copy of REALbasic on a PPC Mac. REALbasic was advertised as "cross-platform that really works". While the interface builder does have fairly useful snapping (including text baseline, spacing etc), Mac O...
by Daniel Beardsmore
01 Aug 2016, 16:29
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 147
Views: 150724

Re: Upcoming Ahk2Exe changes

Well, here goes nothing …
by Daniel Beardsmore
01 Aug 2016, 16:11
Forum: AutoHotkey Development
Topic: Co-ordinate-free dialog layout
Replies: 2
Views: 2176

Co-ordinate-free dialog layout

I decided against necroposting in the v2 GUI thread, and decided to post here instead. Judging by what's been said so far, it appears that the new API will still involve physical control positioning. Does anyone besides me see any value in having some sort of more intelligent layout? For example, if...
by Daniel Beardsmore
01 Aug 2016, 15:40
Forum: Wish List
Topic: Constants
Replies: 4
Views: 4216

Constants

It would be useful to have constants. They're an indication to the reader that the value specified won't change, cannot change and is not intended to change, and will prevent inadvertent reassignments. I'd also like to see the ability to refactor details such as program name, version, copyright into...
by Daniel Beardsmore
01 Aug 2016, 14:55
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 147
Views: 150724

Re: Upcoming Ahk2Exe changes

[...]define k_APPNAME "7-ade"[...] That looks like a c-style definition which is usually more on the compiler side than it is on the "script" part. I imagine ahk2exe could have something like ;@Ahk2Exe-Define MY_CONSTANT "some text and numbers. 1234567890" . If you define the constants inside ahk2e...
by Daniel Beardsmore
01 Aug 2016, 02:48
Forum: Bug Reports
Topic: SmartGUI link broken in docs Topic is solved
Replies: 1
Views: 1376

SmartGUI link broken in docs Topic is solved

In the help file, under GUI → Positioning and Layout via SmartGUI Creator, there is a link to www.autohotkey.com/docs/SmartGUI/ — all this does is bring up a Google search for SmartGUI, which refers you back to the page that refers to you to Google, in a loop (and a link to the online docs, for a sl...
by Daniel Beardsmore
31 Jul 2016, 12:01
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 147
Views: 150724

Re: Upcoming Ahk2Exe changes

Another thing I noticed — there are no constants in AutoHotkey. This isn't unique to AHK — they're also missing from JavaScript and CSS. Constants have that nice semantic that the reader knows that the value specified will not change, cannot change, and is not intended to change. It also prevents ac...
by Daniel Beardsmore
30 Jul 2016, 20:18
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 147
Views: 150724

Re: Upcoming Ahk2Exe changes

I'm just throwing this out there to gauge opinion, as I'm not wholly certain of its merits yet. I'm contemplating whether it would make sense to indicate the target detail. ;@Ahk2Exe-Base base-name ;@Ahk2Exe-OutputDir target-dir Where the output directory is relative to the script. This way, you cou...
by Daniel Beardsmore
27 Jul 2016, 12:09
Forum: Ask for Help (v1)
Topic: True dynamic layout
Replies: 2
Views: 1039

Re: True dynamic layout

The alignment I seek is baseline . For multi-line controls, the baseline position is that of the first line of text, which should align with the baseline of the caption (or the caption's first line, should it wrap). For labels, baseline is trivial. For box controls (text, list etc) the baseline posi...
by Daniel Beardsmore
27 Jul 2016, 07:55
Forum: Ask for Help (v1)
Topic: True dynamic layout
Replies: 2
Views: 1039

True dynamic layout

Looking around, it seems that the conventional approach to AutoHotkey GUIs is to hard-code all control sizes and positions and ignore concerns over DPI, language and system font. Web searches for simple concepts like making all control captions the same width, making a control caption the same heigh...

Go to advanced search