home *** CD-ROM | disk | FTP | other *** search
- ; TextPad keyword syntax file for AutoHotkey
- ; Done by Rajat
-
- C=1
-
- [Syntax]
- Namespace1 =
- IgnoreCase = Yes
-
- ;BracketChars = {}
- OperatorChars = +-*/<>=
- PreprocStart =
- SyntaxStart =
- SyntaxEnd =
- CommentStart = /*
- CommentEnd = */
- CommentStartAlt =
- CommentEndAlt =
- SingleComment = ;
- SingleCommentCol = Leading
- SingleCommentEsc = `
- StringsSpanLines = No
- StringStart = %
- StringEnd = %
- StringAlt =
- StringEsc = `
- CharStart =
- CharEnd =
- CharEsc = `
-
- [Keywords 1]
- #AllowSameLineComments
- #CommentFlag
- #EscapeChar
- #HotkeyInterval
- #HotkeyModifierTimeout
- #Include
- #IncludeAgain
- #InstallKeybdHook
- #InstallMouseHook
- #MaxHotkeysPerInterval
- #MaxThreads
- #MaxThreadsBuffer
- #MaxThreadsPerHotkey
- #NoTrayIcon
- #Persistent
- #SingleInstance
- #UseHook
- #WinActivateForce
- AutoTrim
- BlockInput
- Break
- ClipWait
- Continue
- Control
- ControlFocus
- ControlGet
- ControlGetFocus
- ControlGetText
- ControlClick
- ControlMove
- ControlSend
- ControlSetText
- DetectHiddenText
- DetectHiddenWindows
- DriveSpaceFree
- Edit
- Else
- EndRepeat
- EnvAdd
- EnvSub
- EnvMult
- EnvDiv
- EnvSet
- EnvSub
- EnvUpdate
- Exit
- ExitApp
- FileAppend
- FileCopy
- FileCopyDir
- FileCreateDir
- FileCreateShortcut
- FileDelete
- FileInstall
- FileReadLine
- FileGetAttrib
- FileGetSize
- FileGetTime
- FileGetVersion
- FileMove
- FileMoveDir
- FileRecycle
- FileRecycleEmpty
- FileRemoveDir
- FileSelectFile
- FileSelectFolder
- FileSetAttrib
- FileSetTime
- GetKeyState
- Gosub
- Goto
- GroupActivate
- GroupAdd
- GroupClose
- GroupDeactivate
- if
- is
- not
- IfEqual
- IfNotEqual
- IfExist
- IfNotExist
- IfGreater
- IfGreaterOrEqual
- IfInString
- IfNotInString
- IfLess
- IfLessOrEqual
- IfMsgBox
- IfWinActive
- IfWinNotActive
- IfWinExist
- IfWinNotExist
- IniDelete
- IniRead
- IniWrite
- InputBox
- KeyHistory
- LeftClick
- LeftClickDrag
- ListHotkeys
- ListLines
- ListVars
- Loop
- Menu
- MouseClick
- MouseClickDrag
- MouseGetPos
- MouseMove
- MsgBox
- Pause
- PixelGetColor
- PixelSearch
- PostMessage
- Random
- RegDelete
- RegRead
- RegWrite
- Reload
- Repeat
- EndRepeat
- Return
- RightClick
- RightClickDrag
- Run
- RunAs
- RunWait
- Send
- SendMessage
- SetBatchLines
- SetCapslockState
- SetControlDelay
- SetDefaultMouseSpeed
- SetEnv
- SetFormat
- SetKeyDelay
- SetMouseDelay
- SetNumlockState
- SetScrollLockState
- SetStoreCapslockMode
- SetTimer
- SetTitleMatchMode
- SetWinDelay
- Shutdown
- Sleep
- SoundGet
- SoundGetWaveVolume
- SoundPlay
- SoundSet
- SoundSetWaveVolume
- SplashTextOn
- SplashTextOff
- StatusBarGetText
- StatusBarWait
- StringCaseSense
- StringGetPos
- StringLeft
- StringLen
- StringLower
- StringMid
- StringReplace
- StringRight
- StringSplit
- StringTrimLeft
- StringTrimRight
- StringUpper
- Suspend
- ToolTip
- URLDownloadToFile
- WinActivate
- WinActivateBottom
- WinClose
- WinGetActiveStats
- WinGetActiveTitle
- WinGetPos
- WinGetText
- WinGetTitle
- WinHide
- WinKill
- WinMaximize
- WinMenuSelectItem
- WinMinimize
- WinMinimizeAll
- WinMinimizeAllUndo
- WinMove
- WinRestore
- WinSet
- WinSetTitle
- WinShow
- WinWait
- WinWaitActive
- WinWaitClose
- WinWaitNotActive
-
-
-
- [Keywords 2]
- ; Time units for use with addition and subtraction:
- SECONDS
- MINUTES
- HOURS
- DAYS
-
- ; For use with the Loop command:
- READ
- PARSE
-
- ; Keywords used with the "menu" command:
- TRAY
- ADD
- RENAME
- CHECK
- UNCHECK
- TOGGLECHECK
- ENABLE
- DISABLE
- TOGGLEENABLE
- DEFAULT
- NODEFAULT
- STANDARD
- NOSTANDARD
- DELETE
- DELETEALL
-
- ; Keywords used with "IfMsgBox":
- YES
- NO
- OK
- CANCEL
- ABORT
- RETRY
- IGNORE
-
- ; Built-in variables:
- CLIPBOARD
- ERRORLEVEL
- 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
- A_LOOPFILEFULLPATH
- A_LOOPFILESHORTNAME
- A_LOOPFILEDIR
- A_LOOPFILETIMEMODIFIED
- A_LOOPFILETIMECREATED
- A_LOOPFILETIMEACCESSED
- A_LOOPFILEATTRIB
- A_LOOPFILESIZE
- A_LOOPFILESIZEKB
- A_LOOPFILESIZEMB
- A_LOOPREGNAME
- A_LOOPREGTYPE
- A_LOOPREGKEY
- A_LOOPREGSUBKEY
- A_LOOPREGTIMEMODIFIED
- A_LOOPREADLINE
- A_LOOPFIELD
-
- ; Registry root keys:
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- HKEY_CURRENT_USER
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_CONFIG
- HKLM
- HKU
- HKCU
- HKCR
- HKCC
- ; Registry value types:
- REG_SZ
- REG_EXPAND_SZ
- REG_MULTI_SZ
- REG_DWORD
- REG_BINARY
-
-
-
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-
-
- [Keywords 3]
- ^
- +
- !
- #
- ~
- $
- `
-
- ; These are all enclosed in braces since they're not valid keywords without them:
- {!}
- {#}
- {+}
- {~}
- {^}
- {{}
- {}}
- {ALTDOWN}
- {ALTUP}
- {SHIFTDOWN}
- {SHIFTUP}
- {CTRLDOWN}
- {CTRLUP}
- {LWINDOWN}
- {RWINDOWN}
-
- ; This one lacks a brace since it isn't valid unless it's in the format {ASC nnnn}:
- {ASC
-
- ; For use with hotkey definitions and the GetKeyState command:
- ; It seems seems best to make all key names into genuine keywords, even though sometimes
- ; they will be incorrectly colored (e.g. MsgBox, This sentence contains Sleep & Numpad1).
-
- SHIFT
- LSHIFT
- RSHIFT
- ALT
- LALT
- RALT
- CONTROL
- LCONTROL
- RCONTROL
- CTRL
- LCTRL
- RCTRL
- LWIN
- RWIN
- APPSKEY
-
- LButton
- RButton
- MButton
- WheelUp
- WheelDown
- XButton1
- XButton2
-
- SPACE
- TAB
- ENTER
- ; Not this one since it's already a keyword (a command): RETURN
- ESCAPE
- ESC
- BACKSPACE
- BS
- DELETE
- DEL
- INSERT
- INS
- PGUP
- PGDN
- HOME
- END
- UP
- DOWN
- LEFT
- RIGHT
-
- PRINTSCREEN
- CTRLBREAK
- PAUSE
- ScrollLock
- Capslock
- Numlock
-
- NUMPAD0
- NUMPAD1
- NUMPAD2
- NUMPAD3
- NUMPAD4
- NUMPAD5
- NUMPAD6
- NUMPAD7
- NUMPAD8
- NUMPAD9
- NUMPADMULT
- NUMPADADD
- NUMPADSUB
- NUMPADDIV
- NUMPADDOT
- NUMPADDEL
- NUMPADINS
- NUMPADCLEAR
- NUMPADUP
- NUMPADDOWN
- NUMPADLEFT
- NUMPADRIGHT
- NUMPADHOME
- NUMPADEND
- NUMPADPGUP
- NUMPADPGDN
- NUMPADENTER
-
- F1
- F2
- F3
- F4
- F5
- F6
- F7
- F8
- F9
- F10
- F11
- F12
- F13
- F14
- F15
- F16
- F17
- F18
- F19
- F20
- F21
- F22
- F23
- F24
-
- 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
-
- ; Most of the above are now repeated with braces around them because otherwise
- ; TextPad would not highlight them (since a leading space is required for the above):
-
- {SHIFT}
- {LSHIFT}
- {RSHIFT}
- {ALT}
- {LALT}
- {RALT}
- {CONTROL}
- {LCONTROL}
- {RCONTROL}
- {CTRL}
- {LCTRL}
- {RCTRL}
- {LWIN}
- {RWIN}
- {APPSKEY}
-
- ; These first two will hopefully be supported in the future:
- {WheelUp}
- {WheelDown}
- {LButton}
- {RButton}
- {MButton}
- {XButton1}
- {XButton2}
-
- {SPACE}
- {TAB}
- {ENTER}
- {RETURN}
- {ESCAPE}
- {ESC}
- {BACKSPACE}
- {BS}
- {DELETE}
- {DEL}
- {INSERT}
- {INS}
- {PGUP}
- {PGDN}
- {HOME}
- {END}
- {UP}
- {DOWN}
- {LEFT}
- {RIGHT}
-
- {PRINTSCREEN}
- {CTRLBREAK}
- {PAUSE}
- {ScrollLock}
- {Capslock}
- {Numlock}
-
- {NUMPAD0}
- {NUMPAD1}
- {NUMPAD2}
- {NUMPAD3}
- {NUMPAD4}
- {NUMPAD5}
- {NUMPAD6}
- {NUMPAD7}
- {NUMPAD8}
- {NUMPAD9}
- {NUMPADMULT}
- {NUMPADADD}
- {NUMPADSUB}
- {NUMPADDIV}
- {NUMPADDOT}
- {NUMPADDEL}
- {NUMPADINS}
- {NUMPADCLEAR}
- {NUMPADUP}
- {NUMPADDOWN}
- {NUMPADLEFT}
- {NUMPADRIGHT}
- {NUMPADHOME}
- {NUMPADEND}
- {NUMPADPGUP}
- {NUMPADPGDN}
- {NUMPADENTER}
-
- {F1}
- {F2}
- {F3}
- {F4}
- {F5}
- {F6}
- {F7}
- {F8}
- {F9}
- {F10}
- {F11}
- {F12}
- {F13}
- {F14}
- {F15}
- {F16}
- {F17}
- {F18}
- {F19}
- {F20}
- {F21}
- {F22}
- {F23}
- {F24}
-
- {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}
-