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

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

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

24 Jan 2017, 20:36

[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 12 Aug 2017, 15:16, edited 13 times in total.
User avatar
nnnik
Posts: 2133
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.
Recommends AHK Studio
User avatar
tidbit
Posts: 977
Joined: 29 Sep 2013, 17:15
Location: USA

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: 2115
Joined: 17 Jul 2016, 01:02
Contact:

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: 2055
Joined: 19 Dec 2016, 01:58
Location: UK

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

06 Feb 2017, 18:54

See also, this script by Helgef:
[Hotstrings] Expand parameters for AHK's functions, commands and directives. - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=60&t=27882

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

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

[EDIT:][updates here]
commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=37&t=29689&p=139582#p139582
syntax text from htm files for AutoHotkey v1.1.25.01
syntax text from htm files for AutoHotkey v2.0-a078-e25d96b

Syntax text from AutoHotkey.chm v1.1.24.04:

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

Last edited by jeeswg on 15 Aug 2017, 11:55, edited 6 times in total.
Helgef
Posts: 2115
Joined: 17 Jul 2016, 01:02
Contact:

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: 2055
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: 2055
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 31 Mar 2017, 07:35, edited 2 times in total.
User avatar
jeeswg
Posts: 2055
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: 2115
Joined: 17 Jul 2016, 01:02
Contact:

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: 2055
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: 2016
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: 2055
Joined: 19 Dec 2016, 01:58
Location: UK

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

12 Feb 2017, 18:36

[updated: 2017-08-12]
[note: removed 'A_MsgBoxResult' and 'Deref']

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

missing from the AHK v2 index:
[DirExist]
FileExist / DirExist
https://lexikos.github.io/v2/docs/commands/FileExist.htm
[Exception]
Throw
https://lexikos.github.io/v2/docs/commands/Throw.htm

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



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

Last edited by jeeswg on 07 Sep 2017, 21:39, edited 11 times in total.
User avatar
jeeswg
Posts: 2055
Joined: 19 Dec 2016, 01:58
Location: UK

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

01 Apr 2017, 07:54

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



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

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

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

10 Apr 2017, 13:07

list of every AutoHotkey version number, from 2003 onwards:

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



script to get list of every AutoHotkey version number:

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

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

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

10 Apr 2017, 19:49

urls and webpage titles for urls within AutoHotkey Help pages:

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



how to get urls (but not webpage titles) for urls within AutoHotkey Help pages:

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

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

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

01 Jun 2017, 20:28

INSTALLATION:

installation of AutoHotkey 'U32' v1.1.25.02 on Windows 7 64-bit:
installed via 'AutoHotkey_1.1.25.02_setup.exe', which is a 32-bit exe,
with 4 out of 4 options ticked:
(note: by default the first 3 options are ticked, and the 4th is not:)
- Install script compiler [Compile key, Ahk2Exe.exe key]
- Enable drag & drop [DropHandler key]
- Separate taskbar buttons [IsHostApp values]
- Add 'Run with UI Access' to context menus [uiAccess key]

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

INSTALLATION (FOLDERS / FILES / REGISTRY KEYS):
['Installer.ahk' can provide clues on which files/folders are installed]

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



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

INSTALLATION (REGISTRY VALUES):
[generated via NirSoft RegFromApp (32-bit), run in Admin mode, monitoring temporary file 'setup.exe' (32-bit)]
[installed on a Windows 7 64-bit PC]

[all 4 options ticked:]

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



[all 4 options unticked:]

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



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

INSTALLATION (NOTES):

When the installer says:
'AutoHotkey v1.1.25.02 (Unicode 32-bit) is installed. What do you want to do?'
- 'v1.1.25.02' is based on the Version key in:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AutoHotkey
- 'Unicode 32-bit' is based on 'AutoHotkey.exe', if it is found, within the folder specified in the InstallDir key in:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AutoHotkey

information in 'Control Panel\Programs\Programs and Features' is based on:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AutoHotkey

The drop handler class, {86C86720-42A0-1069-A2E8-08002B30309D}, is the same one used by various other filetypes including batch files:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\ShellEx\DropHandler

==================================================
Visioneer
Posts: 119
Joined: 07 Oct 2013, 18:51

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

28 Aug 2017, 12:59

Hi jeeswg,
Great stuff.
I would love to see the COM vocabulary. Maybe with links to specific help.
Maybe as a prelude to a COM CHM/HTML file(s). Getting just the basic terms will be a job.

Thanks

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests