Propose new features and changes
Daniel Beardsmore
Posts: 13
Joined: 23 Jul 2016, 15:57


01 Aug 2016, 15:40

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 constants that the revised ahk2exe's compiler directives can pick up on, instead of having to define each one twice.

(And real constants — Perl's pretendoconstants cause all sorts of weird and seemingly inexplicable compile and runtime errors and lead to strange decoration of the functions to force them to work properly. I'm thinking more like a const keyword to complement global.)
User avatar
Posts: 1292
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark

Re: Constants

02 Aug 2016, 08:01

Also check out:
Courses on AutoHotkey

My Autohotkey Blog
User avatar
Posts: 160
Joined: 03 Aug 2015, 18:48
GitHub: grrdi
Location: Germany

Re: Constants

03 Mar 2017, 07:29

Code: Select all

; Allow constants (FixedVars) in directives.
; Example:

#FixedVars ThisInstanceWinTitle:="Hugo" , ThisInstanceWinText:="File"
; Allow to use constants (FixedVars) in directives.
#IfWinActive , %ThisInstanceWinTitle% , %ThisInstanceWinText%

; Forbidden:

; OK:
Win 10 Home (x64) or Win 7 Enterprise ... --> get folders on the quick
Daniel Beardsmore
Posts: 13
Joined: 23 Jul 2016, 15:57

Re: Constants

03 Mar 2017, 12:43

I wouldn't suggest using old syntax for a new feature.

Re: Constants

03 Mar 2017, 17:04

I thought it would fit in here. By the way, constants would also have been implemented.

Should a new forum entry be branched off?

If so, from me, or is this done by an administrator?

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 6 guests