home *** CD-ROM | disk | FTP | other *** search
/ PC User 2004 July / PCU0704CD2.ISO / resource / shortcut / files / autohot.exe / Extras / AutoHotkey.syn < prev    next >
Encoding:
Text File  |  2004-04-27  |  7.4 KB  |  621 lines

  1. ; TextPad keyword syntax file for AutoHotkey
  2. ; Done by Rajat
  3.  
  4. C=1
  5.  
  6. [Syntax]
  7. Namespace1 =
  8. IgnoreCase = Yes
  9.  
  10. ;BracketChars = {}
  11. OperatorChars = +-*/<>=
  12. PreprocStart =
  13. SyntaxStart =
  14. SyntaxEnd =
  15. CommentStart = /*
  16. CommentEnd = */
  17. CommentStartAlt =
  18. CommentEndAlt =
  19. SingleComment = ;
  20. SingleCommentCol = Leading
  21. SingleCommentEsc = `
  22. StringsSpanLines = No
  23. StringStart = %
  24. StringEnd = %
  25. StringAlt =
  26. StringEsc = `
  27. CharStart =
  28. CharEnd =
  29. CharEsc = `
  30.  
  31. [Keywords 1]
  32. #AllowSameLineComments
  33. #CommentFlag
  34. #EscapeChar
  35. #HotkeyInterval
  36. #HotkeyModifierTimeout
  37. #Include
  38. #IncludeAgain
  39. #InstallKeybdHook
  40. #InstallMouseHook
  41. #MaxHotkeysPerInterval
  42. #MaxThreads
  43. #MaxThreadsBuffer
  44. #MaxThreadsPerHotkey
  45. #NoTrayIcon
  46. #Persistent
  47. #SingleInstance
  48. #UseHook
  49. #WinActivateForce
  50. AutoTrim
  51. BlockInput
  52. Break
  53. ClipWait
  54. Continue
  55. Control
  56. ControlFocus
  57. ControlGet
  58. ControlGetFocus
  59. ControlGetText
  60. ControlClick
  61. ControlMove
  62. ControlSend
  63. ControlSetText
  64. DetectHiddenText
  65. DetectHiddenWindows
  66. DriveSpaceFree
  67. Edit
  68. Else
  69. EndRepeat
  70. EnvAdd
  71. EnvSub
  72. EnvMult
  73. EnvDiv
  74. EnvSet
  75. EnvSub
  76. EnvUpdate
  77. Exit
  78. ExitApp
  79. FileAppend
  80. FileCopy
  81. FileCopyDir
  82. FileCreateDir
  83. FileCreateShortcut
  84. FileDelete
  85. FileInstall
  86. FileReadLine
  87. FileGetAttrib
  88. FileGetSize
  89. FileGetTime
  90. FileGetVersion
  91. FileMove
  92. FileMoveDir
  93. FileRecycle
  94. FileRecycleEmpty
  95. FileRemoveDir
  96. FileSelectFile
  97. FileSelectFolder
  98. FileSetAttrib
  99. FileSetTime
  100. GetKeyState
  101. Gosub
  102. Goto
  103. GroupActivate
  104. GroupAdd
  105. GroupClose
  106. GroupDeactivate
  107. if
  108. is
  109. not
  110. IfEqual
  111. IfNotEqual
  112. IfExist
  113. IfNotExist
  114. IfGreater
  115. IfGreaterOrEqual
  116. IfInString
  117. IfNotInString
  118. IfLess
  119. IfLessOrEqual
  120. IfMsgBox
  121. IfWinActive
  122. IfWinNotActive
  123. IfWinExist
  124. IfWinNotExist
  125. IniDelete
  126. IniRead
  127. IniWrite
  128. InputBox
  129. KeyHistory
  130. LeftClick
  131. LeftClickDrag
  132. ListHotkeys
  133. ListLines
  134. ListVars
  135. Loop
  136. Menu
  137. MouseClick
  138. MouseClickDrag
  139. MouseGetPos
  140. MouseMove
  141. MsgBox
  142. Pause
  143. PixelGetColor
  144. PixelSearch
  145. PostMessage
  146. Random
  147. RegDelete
  148. RegRead
  149. RegWrite
  150. Reload
  151. Repeat
  152. EndRepeat
  153. Return
  154. RightClick
  155. RightClickDrag
  156. Run
  157. RunAs
  158. RunWait
  159. Send
  160. SendMessage
  161. SetBatchLines
  162. SetCapslockState
  163. SetControlDelay
  164. SetDefaultMouseSpeed
  165. SetEnv
  166. SetFormat
  167. SetKeyDelay
  168. SetMouseDelay
  169. SetNumlockState
  170. SetScrollLockState
  171. SetStoreCapslockMode
  172. SetTimer
  173. SetTitleMatchMode
  174. SetWinDelay
  175. Shutdown
  176. Sleep
  177. SoundGet
  178. SoundGetWaveVolume
  179. SoundPlay
  180. SoundSet
  181. SoundSetWaveVolume
  182. SplashTextOn
  183. SplashTextOff
  184. StatusBarGetText
  185. StatusBarWait
  186. StringCaseSense
  187. StringGetPos
  188. StringLeft
  189. StringLen
  190. StringLower
  191. StringMid
  192. StringReplace
  193. StringRight
  194. StringSplit
  195. StringTrimLeft
  196. StringTrimRight
  197. StringUpper
  198. Suspend
  199. ToolTip
  200. URLDownloadToFile
  201. WinActivate
  202. WinActivateBottom
  203. WinClose
  204. WinGetActiveStats
  205. WinGetActiveTitle
  206. WinGetPos
  207. WinGetText
  208. WinGetTitle
  209. WinHide
  210. WinKill
  211. WinMaximize
  212. WinMenuSelectItem
  213. WinMinimize
  214. WinMinimizeAll
  215. WinMinimizeAllUndo
  216. WinMove
  217. WinRestore
  218. WinSet
  219. WinSetTitle
  220. WinShow
  221. WinWait
  222. WinWaitActive
  223. WinWaitClose
  224. WinWaitNotActive
  225.  
  226.  
  227.  
  228. [Keywords 2]
  229. ; Time units for use with addition and subtraction:
  230. SECONDS
  231. MINUTES
  232. HOURS
  233. DAYS
  234.  
  235. ; For use with the Loop command:
  236. READ
  237. PARSE
  238.  
  239. ; Keywords used with the "menu" command:
  240. TRAY
  241. ADD
  242. RENAME
  243. CHECK
  244. UNCHECK
  245. TOGGLECHECK
  246. ENABLE
  247. DISABLE
  248. TOGGLEENABLE
  249. DEFAULT
  250. NODEFAULT
  251. STANDARD
  252. NOSTANDARD
  253. DELETE
  254. DELETEALL
  255.  
  256. ; Keywords used with "IfMsgBox":
  257. YES
  258. NO
  259. OK
  260. CANCEL
  261. ABORT
  262. RETRY
  263. IGNORE
  264.  
  265. ; Built-in variables:
  266. CLIPBOARD
  267. ERRORLEVEL
  268. A_YEAR
  269. A_MON
  270. A_MDAY
  271. A_HOUR
  272. A_MIN
  273. A_SEC
  274. A_WDAY
  275. A_YDAY
  276. A_WORKINGDIR
  277. A_SCRIPTNAME
  278. A_SCRIPTDIR
  279. A_SCRIPTFULLPATH
  280. A_NUMBATCHLINES
  281. A_OSTYPE
  282. A_OSVERSION
  283. A_THISHOTKEY
  284. A_PRIORHOTKEY
  285. A_TIMESINCETHISHOTKEY
  286. A_TIMESINCEPRIORHOTKEY
  287. A_TIMEIDLE
  288. A_TIMEIDLEPHYSICAL
  289. A_TICKCOUNT
  290. A_SPACE
  291. A_TAB
  292. A_INDEX
  293. A_LOOPFILENAME
  294. A_LOOPFILEFULLPATH
  295. A_LOOPFILESHORTNAME
  296. A_LOOPFILEDIR
  297. A_LOOPFILETIMEMODIFIED
  298. A_LOOPFILETIMECREATED
  299. A_LOOPFILETIMEACCESSED
  300. A_LOOPFILEATTRIB
  301. A_LOOPFILESIZE
  302. A_LOOPFILESIZEKB
  303. A_LOOPFILESIZEMB
  304. A_LOOPREGNAME
  305. A_LOOPREGTYPE
  306. A_LOOPREGKEY
  307. A_LOOPREGSUBKEY
  308. A_LOOPREGTIMEMODIFIED
  309. A_LOOPREADLINE
  310. A_LOOPFIELD
  311.  
  312. ; Registry root keys:
  313. HKEY_LOCAL_MACHINE
  314. HKEY_USERS
  315. HKEY_CURRENT_USER
  316. HKEY_CLASSES_ROOT
  317. HKEY_CURRENT_CONFIG
  318. HKLM
  319. HKU
  320. HKCU
  321. HKCR
  322. HKCC
  323. ; Registry value types:
  324. REG_SZ
  325. REG_EXPAND_SZ
  326. REG_MULTI_SZ
  327. REG_DWORD
  328. REG_BINARY
  329.  
  330.  
  331.  
  332.  
  333. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  334.  
  335.  
  336.  
  337. [Keywords 3]
  338. ^
  339. +
  340. !
  341. #
  342. ~
  343. $
  344. `
  345.  
  346. ; These are all enclosed in braces since they're not valid keywords without them:
  347. {!}
  348. {#}
  349. {+}
  350. {~}
  351. {^}
  352. {{}
  353. {}}
  354. {ALTDOWN}
  355. {ALTUP}
  356. {SHIFTDOWN}
  357. {SHIFTUP}
  358. {CTRLDOWN}
  359. {CTRLUP}
  360. {LWINDOWN}
  361. {RWINDOWN}
  362.  
  363. ; This one lacks a brace since it isn't valid unless it's in the format {ASC nnnn}:
  364. {ASC
  365.  
  366. ; For use with hotkey definitions and the GetKeyState command:
  367. ; It seems seems best to make all key names into genuine keywords, even though sometimes
  368. ; they will be incorrectly colored (e.g. MsgBox, This sentence contains Sleep & Numpad1).
  369.  
  370. SHIFT
  371. LSHIFT
  372. RSHIFT
  373. ALT
  374. LALT
  375. RALT
  376. CONTROL
  377. LCONTROL
  378. RCONTROL
  379. CTRL
  380. LCTRL
  381. RCTRL
  382. LWIN
  383. RWIN
  384. APPSKEY
  385.  
  386. LButton
  387. RButton
  388. MButton
  389. WheelUp
  390. WheelDown
  391. XButton1
  392. XButton2
  393.  
  394. SPACE
  395. TAB
  396. ENTER
  397. ; Not this one since it's already a keyword (a command): RETURN
  398. ESCAPE
  399. ESC
  400. BACKSPACE
  401. BS
  402. DELETE
  403. DEL
  404. INSERT
  405. INS
  406. PGUP
  407. PGDN
  408. HOME
  409. END
  410. UP
  411. DOWN
  412. LEFT
  413. RIGHT
  414.  
  415. PRINTSCREEN
  416. CTRLBREAK
  417. PAUSE
  418. ScrollLock
  419. Capslock
  420. Numlock
  421.  
  422. NUMPAD0
  423. NUMPAD1
  424. NUMPAD2
  425. NUMPAD3
  426. NUMPAD4
  427. NUMPAD5
  428. NUMPAD6
  429. NUMPAD7
  430. NUMPAD8
  431. NUMPAD9
  432. NUMPADMULT
  433. NUMPADADD
  434. NUMPADSUB
  435. NUMPADDIV
  436. NUMPADDOT
  437. NUMPADDEL
  438. NUMPADINS
  439. NUMPADCLEAR
  440. NUMPADUP
  441. NUMPADDOWN
  442. NUMPADLEFT
  443. NUMPADRIGHT
  444. NUMPADHOME
  445. NUMPADEND
  446. NUMPADPGUP
  447. NUMPADPGDN
  448. NUMPADENTER
  449.  
  450. F1
  451. F2
  452. F3
  453. F4
  454. F5
  455. F6
  456. F7
  457. F8
  458. F9
  459. F10
  460. F11
  461. F12
  462. F13
  463. F14
  464. F15
  465. F16
  466. F17
  467. F18
  468. F19
  469. F20
  470. F21
  471. F22
  472. F23
  473. F24
  474.  
  475. BROWSER_BACK
  476. BROWSER_FORWARD
  477. BROWSER_REFRESH
  478. BROWSER_STOP
  479. BROWSER_SEARCH
  480. BROWSER_FAVORITES
  481. BROWSER_HOME
  482. VOLUME_MUTE
  483. VOLUME_DOWN
  484. VOLUME_UP
  485. MEDIA_NEXT
  486. MEDIA_PREV
  487. MEDIA_STOP
  488. MEDIA_PLAY_PAUSE
  489. LAUNCH_MAIL
  490. LAUNCH_MEDIA
  491. LAUNCH_APP1
  492. LAUNCH_APP2
  493.  
  494. ; Most of the above are now repeated with braces around them because otherwise
  495. ; TextPad would not highlight them (since a leading space is required for the above):
  496.  
  497. {SHIFT}
  498. {LSHIFT}
  499. {RSHIFT}
  500. {ALT}
  501. {LALT}
  502. {RALT}
  503. {CONTROL}
  504. {LCONTROL}
  505. {RCONTROL}
  506. {CTRL}
  507. {LCTRL}
  508. {RCTRL}
  509. {LWIN}
  510. {RWIN}
  511. {APPSKEY}
  512.  
  513. ; These first two will hopefully be supported in the future:
  514. {WheelUp}
  515. {WheelDown}
  516. {LButton}
  517. {RButton}
  518. {MButton}
  519. {XButton1}
  520. {XButton2}
  521.  
  522. {SPACE}
  523. {TAB}
  524. {ENTER}
  525. {RETURN}
  526. {ESCAPE}
  527. {ESC}
  528. {BACKSPACE}
  529. {BS}
  530. {DELETE}
  531. {DEL}
  532. {INSERT}
  533. {INS}
  534. {PGUP}
  535. {PGDN}
  536. {HOME}
  537. {END}
  538. {UP}
  539. {DOWN}
  540. {LEFT}
  541. {RIGHT}
  542.  
  543. {PRINTSCREEN}
  544. {CTRLBREAK}
  545. {PAUSE}
  546. {ScrollLock}
  547. {Capslock}
  548. {Numlock}
  549.  
  550. {NUMPAD0}
  551. {NUMPAD1}
  552. {NUMPAD2}
  553. {NUMPAD3}
  554. {NUMPAD4}
  555. {NUMPAD5}
  556. {NUMPAD6}
  557. {NUMPAD7}
  558. {NUMPAD8}
  559. {NUMPAD9}
  560. {NUMPADMULT}
  561. {NUMPADADD}
  562. {NUMPADSUB}
  563. {NUMPADDIV}
  564. {NUMPADDOT}
  565. {NUMPADDEL}
  566. {NUMPADINS}
  567. {NUMPADCLEAR}
  568. {NUMPADUP}
  569. {NUMPADDOWN}
  570. {NUMPADLEFT}
  571. {NUMPADRIGHT}
  572. {NUMPADHOME}
  573. {NUMPADEND}
  574. {NUMPADPGUP}
  575. {NUMPADPGDN}
  576. {NUMPADENTER}
  577.  
  578. {F1}
  579. {F2}
  580. {F3}
  581. {F4}
  582. {F5}
  583. {F6}
  584. {F7}
  585. {F8}
  586. {F9}
  587. {F10}
  588. {F11}
  589. {F12}
  590. {F13}
  591. {F14}
  592. {F15}
  593. {F16}
  594. {F17}
  595. {F18}
  596. {F19}
  597. {F20}
  598. {F21}
  599. {F22}
  600. {F23}
  601. {F24}
  602.  
  603. {BROWSER_BACK}
  604. {BROWSER_FORWARD}
  605. {BROWSER_REFRESH}
  606. {BROWSER_STOP}
  607. {BROWSER_SEARCH}
  608. {BROWSER_FAVORITES}
  609. {BROWSER_HOME}
  610. {VOLUME_MUTE}
  611. {VOLUME_DOWN}
  612. {VOLUME_UP}
  613. {MEDIA_NEXT}
  614. {MEDIA_PREV}
  615. {MEDIA_STOP}
  616. {MEDIA_PLAY_PAUSE}
  617. {LAUNCH_MAIL}
  618. {LAUNCH_MEDIA}
  619. {LAUNCH_APP1}
  620. {LAUNCH_APP2}
  621.