Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

AHK - Command Reference - Syntax Highlighting - Source


  • Please log in to reply
2 replies to this topic
Beastmaster
  • Guests
  • Last active:
  • Joined: --
Following - all AHK v1.0.07 commands which are listed in its online help. I've parsed it from its HTML source code.

This should support those who are willing to create an AHK syntax-highlighting-source file for a favourite editor (yes, you've to share it :wink: ).

:arrow: I would recommend that Chris Mallett ("the boss") will decide if an existing color scheme should be adopted as a default eg. from A2/A3/Macro Scheduler/... . That would make it easier for those who have to deal with different scripting tools at the same time. 8)

:idea: Maybe it would make sense to provide such a raw file for download.

----- (in alphabetical order) -----

#AllowSameLineComments
#CommentFlag
#EscapeChar
#HotkeyInterval
#HotkeyModifierTimeout
#Include
#InstallKeybdHook
#InstallMouseHook
#MaxHotkeysPerInterval
#MaxThreads
#MaxThreadsBuffer
#MaxThreadsPerHotkey
#NoTrayIcon
#SingleInstance
#UseHook
#UseHook
#WinActivateForce

AutoTrim
Block
BlockInput
Break
ClipWait
Continue
ControlClick
ControlFocus
ControlGetFocus
ControlGetText
ControlSend
ControlSetText
DetectHiddenText
DetectHiddenWindows
DriveSpaceFree
Edit
Else
EnvAdd
EnvDiv
EnvMult
EnvSet
EnvSub
EnvUpdate
Exit
ExitApp
FileAppend
FileCopy
FileCopyDir
FileCreateDir
FileCreateShortcut
FileDelete
FileGetAttrib
FileGetSize
FileGetTime
FileGetVersion
FileInstall
FileMove
FileMoveDir
FileReadLine
FileRemoveDir
FileSelectFile
FileSelectFolder
FileSetAttrib
FileSetTime
GetKeyState
Gosub
Goto
GroupActivate
GroupAdd
GroupClose
GroupDeactivate
IfEqual
IfExist
IfInString
IfIs
IfMsgBox
IfWinActive
IfWinExist
IniDelete
IniRead
IniWrite
InputBox
KeyHistory
ListHotkeys
ListLines
ListVars
Loop
LoopFile
LoopParse
LoopReadFile
LoopReg
Menu
MouseClick
MouseClickDrag
MouseGetPos
MouseMove
MsgBox
Pause
PixelGetColor
PixelSearch
Random
RegDelete
RegRead
RegWrite
Reload
Return
Run
Send
SetBatchLines
SetControlDelay
SetDefaultMouseSpeed
SetEnv
SetFormat
SetKeyDelay
SetMouseDelay
SetNumScrollCapsLockState
SetStoreCapslockMode
SetTimer
SetTitleMatchMode
SetWinDelay
Shutdown
Sleep
SoundGet
SoundGetWaveVolume
SoundPlay
SoundSet
SoundSetWaveVolume
SplashTextOn
StatusBarGetText
StatusBarWait
StringCaseSense
StringGetPos
StringLeft
StringLen
StringLower
StringMid
StringReplace
StringSplit
StringTrimLeft
Suspend
URLDownloadToFile
WinActivate
WinActivateBottom
WinClose
WinGetActiveStats
WinGetActiveTitle
WinGetPos
WinGetText
WinGetTitle
WinHide
WinKill
WinMaximize
WinMenuSelectItem
WinMinimize
WinMinimizeAll
WinMove
WinRestore
WinSetTitle
WinShow
WinWait
WinWaitActive
WinWaitClose

Beastmaster
  • Guests
  • Last active:
  • Joined: --
AHK's variables (should have been part of the above source :oops: )

-----

A_Year
A_Mon
A_MDay
A_Hour
A_Min
A_Sec
A_WDay
A_YDay
A_WorkingDir
A_ScriptName
A_ScriptDir
A_ScriptFullPath
A_NumBatchLines
A_OSType
A_OSVersion
A_ThisHotkey
A_PriorHotkey
A_TimeSinceThisHotkey
A_TimeSincePriorHotkey
A_TimeIdle
A_TimeIdlePhysical
A_TickCount
A_Space
A_Tab
A_Index
A_LoopFileName, etc.
A_LoopRegName
A_LoopReadLine
A_LoopField

Clipboard
ErrorLevel

Beastmaster
  • Guests
  • Last active:
  • Joined: --
And here we go ... :wink:

Mouse:

LButton
RButton
MButton

WheelDown
WheelUp

XButton1
XButton2

Keyboard:

Delete
Del
Insert
Ins
Up
Down
Left
Right
Home
End
PgUp
PgDn

NumpadDel
NumpadIns
NumpadClear
NumpadUp
NumpadDown
NumpadLeft
NumpadRight
NumpadHome
NumpadEnd
NumpadPgUp
NumpadPgDn

Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9

NumpadMult
NumpadDiv
NumpadAdd
NumpadSub
NumpadDot

Numlock
ScrollLock
CapsLock

Enter
Return
Space
Tab
Escape
Esc
Backspace
BS
PrintScreen
CtrlBreak
Pause
Break
Help
Sleep

AppsKey

Control
Ctrl
Alt
Shift
LWin
RWin

LControl
LCtrl
RControl
RCtrl
LShift
RShift
LAlt
RAlt

F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12

Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2