Re: Suggestions on documentation improvements
Posted: 11 Dec 2017, 07:44
Done. See GitHub pull request #216.
Let's help each other out
https://www.autohotkey.com/boards/
Unfortunately not a good idea at the moment. If you have hidden the sidebar, you will see the transition effect every time you open a new page, which is quite annoying. Furthermore, the effect in Chrome is quite laggy. In order for all this to work smoothly, more needs to be done than just this line.joedf wrote:What do you think of adding this, so the hiding of the menu doesn't seem to sudden/rough?
This also applies to Edge. The reason for this is the change I introduced: Exclude sidebar content when searching via Ctrl+F. Unfortunately, the search feature of IE/Edge cannot handle this correctly. I've "reversed" this change specifically for IE/Edge; see GitHub pull request #218.jeeswg wrote:Just to let you know, I believe that Ctrl+F to find/focus text on Internet Explorer 11 (Windows 7) is not working on the AHK v1/v2 documentation pages.
No, it cannot.joefiesta wrote:VARSETCAPACITY()
[...]
But, it can also CREATE a variable.
Code: Select all
VarSetCapacity(Bin,16,68)
Loop, Parse, bin
c .= asc(A_loopfield)
msgbox %c%
exitapp
I guess AHK, when running non-compiled code, is like case 2. so, he's adding Bin and C to a symbol table or something. But, that leaves us at the beginning, which would mean, IN A SENSE, NO VARIABLES are created by ANY commands.An interpreter generally uses one of the following strategies for program execution:
parse the source code and perform its behavior directly;
translate source code into some efficient intermediate representation and immediately execute this;
explicitly execute stored precompiled code made by a compiler which is part of the interpreter system.
Any non-dynamic reference to a variable creates that variable the moment the script launches.
Source: Functions
In AutoHotkey, variables are created simply by using them.
Source: Concepts and Conventions (documentation added in v1.1.27.00)
Even in VarSetCapacity(%varname%, n), %varname% creates the variable, not VarSetCapacity.Except where noted on the functions page, variables are not declared; they come into existence simply by using them (and each variable starts off empty/blank).
Source: Variables and Expressions (v1.0)
I always thought of the AutoHotkey helpfile as documentation - seems I was wrong it's a puzzle.lexikos wrote:Any non-dynamic reference to a variable creates that variable the moment the script launches.
Source: FunctionsIn AutoHotkey, variables are created simply by using them.
Source: Concepts and Conventions (documentation added in v1.1.27.00)Except where noted on the functions page, variables are not declared; they come into existence simply by using them (and each variable starts off empty/blank).
Source: Variables and Expressions (v1.0)