list of every command/function/variable from across all versions

Helpful script writing tricks and HowTo's
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

list of every command/function/variable from across all versions

24 Jan 2017, 20:36

[updated: 2017-02-12]
[see post lower down for updated 'tabular summary of functions/commands, directives, variables']
click here: https://autohotkey.com/boards/viewtopic.php?f=7&t=27321&p=131642#p131642

Initial attempt at a list of every AutoHotkey command/function/variable ever.

For AutoHotkey v1.1:
Information obtained by decompiling AutoHotkey.chm to htm files,
extracting command/function definitions from htm files,
(between tags: '<pre class="Syntax">' and '</pre>',)
and variables names from text generally from htm files,
and by subsequently confirming the existence of command/function/variable names.

Please notify of errors or omissions.

I need this for doing tutorials and script conversions.

==================================================

undocumented AutoIt2 commands:


'AutoHotkey\Extras\Editors\Syntax' text files
Index of /download/1.0
https://autohotkey.com/download/1.0/
AutoHotkey104805.zip

AHK Basic information based on:


Alphabetical Command and Function Index
https://autohotkey.com/docs/commands/

Not explicitly in AHK v1.1 list of commands:



Alphabetical Command and Function Index
https://lexikos.github.io/v2/docs/commands/index.htm

Not explicitly in AHK v2 list of commands:


[source for AHK v2 list of variables:]
v2-changes
https://autohotkey.com/v2/v2-changes.htm

Notes:


==================================================


AHK v1.0.48.05

Functions


Commands


Variables



AHK v1.1.24.04

Functions


Commands


Variables



AHK v2 alpha

Functions/Commands


Variables


;commands (AHK v2)
Download
Deref
DirCopy
DirCreate
DirDelete
DirMove
DirSelect
FileSelect
MenuSelect
RegDeleteKey
StrLower
StrUpper
WinMoveBottom
WinMoveTop
WinRedraw
WinSetAlwaysOnTop
WinSetEnabled
WinSetExStyle
WinSetRegion
WinSetStyle
WinSetTransColor
WinSetTransparent

;functions (AHK v2)
DateAdd
DateDiff
DirExist

==================================================
Last edited by jeeswg on 27 Mar 2017, 11:46, edited 11 times in total.
User avatar
nnnik
Posts: 1690
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: list of every command/function/variable from across all versions

25 Jan 2017, 03:39

I made it at least a bit readeable.
Also v2 changes said: "All commands can now be called as functions, except for control flow statements such as Return"
So I don't know why you have a seperate command and function category down there.
Also everything that starts with a Hashtag is not a command but a preprocessor directive.
I am not afraid of many things. But I do fear fear.
User avatar
tidbit
Posts: 830
Joined: 29 Sep 2013, 17:15
Location: Minnesota, US

Re: list of every command/function/variable from across all versions

25 Jan 2017, 12:15

Thanks for this. Been wanting to do it myself (make an updated syntax file for my editor) but was too lazy.

I modified it to be lowerUpperUpper (exceptions apply, like A_ and LV_), It also contains hotkeys.
Spoiler

note: keywords in my above list is not all the keywords, just the ones I felt like adding.

You're also missing things. I noticed: Autotrim, __Call, __Delete, __Get, __New, __Set, and basically everything class/array/object related.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
Helgef
Posts: 1247
Joined: 17 Jul 2016, 01:02

Re: list of every command/function/variable from across all versions

06 Feb 2017, 11:31

@jeeswg, while your at it ( ;) ), could you supply a list with commands/functions with their respective parameters (including commas and optional brackets and default parameter values, if any), eg,

Code: [Select all] [Download] GeSHi © Codebox Plus

WinSet, Attribute, Value [, WinTitle, WinText,  ExcludeTitle, ExcludeText]

I would like to make hotstrings like this,

Code: [Select all] [Download] GeSHi © Codebox Plus

#Hotstring EndChars `t
:O:WinSet::WinSet, Attribute, Value [, WinTitle, WinText, ExcludeTitle, ExcludeText]
; [...]

Cheers!
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

06 Feb 2017, 18:54

Script to get syntax text from AutoHotkey.chm (decompiled) htms, or htms from GitHub:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



==================================================

Note: RegEx <.+> versus <.+?>:
Regular Expressions (RegEx) - Quick Reference
https://autohotkey.com/docs/misc/RegEx-QuickRef.htm

Greed: By default, *, ?, +, and {min,max} are greedy because they consume all characters up through the last possible one that still satisfies the entire pattern. To instead have them stop at the first possible character, follow them with a question mark. For example, the pattern <.+> (which lacks a question mark) means: "search for a <, followed by one or more of any character, followed by a >". To stop this pattern from matching the entire string <em>text</em>, append a question mark to the plus sign: <.+?>. This causes the match to stop at the first '>' and thus it matches only the first tag <em>.

==================================================

Syntax text from AutoHotkey.chm v1.1.24.04:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by jeeswg on 27 Mar 2017, 16:18, edited 4 times in total.
Helgef
Posts: 1247
Joined: 17 Jul 2016, 01:02

Re: list of every command/function/variable from across all versions

06 Feb 2017, 19:25

jeeswg wrote:Syntax text from AutoHotkey.chm v.1.1.24.04:

:bravo: Thank you very much!
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

06 Feb 2017, 19:27

Hahaha no problem. I noticed you went offline just before I posted it, which is typically how these things work!
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

09 Feb 2017, 13:01

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by jeeswg on 27 Mar 2017, 13:07, edited 1 time in total.
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

09 Feb 2017, 13:11

@nnnik
The new post above includes information regarding:
"All commands can now be called as functions, except for control flow statements such as Return"
You are right about commands v. directives, the issue was simply that the original
text files I began with lumped them together.
(Although one could say that syntax-wise, directives are essentially command-like.)
I will list them separately, when I produce an updated list.
You arranged the code very nicely, and I learnt some useful tags there, thank you.
I will also add a version in code tags for copy and paste, at the bottom of the first post.

@tidbit
AutoTrim is there, I separated commands by when they were first introduced,
hence some possible confusion.
I'll have to look into '__Call, __Delete, __Get, __New, __Set'
what name would you give those, methods?

@Helgef
Good idea, I had intended to do that, and have now.
I think it's useful also to provide the *code* as I did,
so that people can update them when needed.

@guest3456
Wow is that a capital letter there! Thanks very much.

@Guest
Thank you, I knew that some syntax lists had been produced somewhere,
those may be the ones I was looking for.
I wanted to use them as a double-check.
Helgef
Posts: 1247
Joined: 17 Jul 2016, 01:02

Re: list of every command/function/variable from across all versions

09 Feb 2017, 13:25

jeeswg wrote:@Helgef
Good idea, I had intended to do that, and have now.

Your work has been credited and appreciated, see this. I hope we didn't do the same work simultaneously :crazy: :lol:
User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

09 Feb 2017, 13:30

code for checking command/function existence:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



@Helgef, thank you. Don't worry about duplication, anything major I always do a good check for example code first. Plus I often like to understand and rewrite things for myself anyway.
Wow, 1000 posts is coming up!
guest3456
Posts: 1859
Joined: 09 Oct 2013, 10:31

Re: list of every command/function/variable from across all versions

10 Feb 2017, 14:22

jeeswg wrote:@guest3456
Wow is that a capital letter there! Thanks very much.


Haha, I'm experimenting with Sticky Shift which is much easier to use

User avatar
jeeswg
Posts: 615
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list of every command/function/variable from across all versions

12 Feb 2017, 18:36

[note: removed '2__ A_MsgBoxResult']

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Return to “Tutorials”

Who is online

Users browsing this forum: vnmiller and 3 guests