Skip to content

Instantly share code, notes, and snippets.

@fincs
Created April 9, 2012 20:32
Show Gist options
  • Save fincs/2346412 to your computer and use it in GitHub Desktop.
Save fincs/2346412 to your computer and use it in GitHub Desktop.
AutoHotkey Gist & forum test
/*
***************************************************
* SciTE4AutoHotkey v3 syntax highlighting demo *
* August 19, 2010 - fincs *
***************************************************
*/
; Normal comment
/*
Block comment
*/
; Directives, keywords
#SingleInstance Force
#NoTrayIcon
; Command, literal text, escape sequence
MsgBox, Hello World `; This isn't a comment
; Operators
Bar = Foo ; operators
Foo := Bar ; expression assignment operators
; String
Var := "This is a test"
; Number
Num = 40 + 4
; Dereferencing
Foo := %Bar%
; Flow of control, built-in-variables, BIV dereferencing
if true
MsgBox, This will always be displayed
Loop, 3
MsgBox Repetition #%A_Index%
; Built-in-function call
MsgBox % SubStr("blaHello Worldbla", 4, 11)
if false
{
; Keys and buttons
Send, {F1}
; Syntax errors (the following is fake, but to show you)
MyVar = "This is a test
}
ExitApp
; Label, hotkey, hotstring
Label:
#v::MsgBox You pressed Win+V
::btw::by the way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment