

Literal commas must also be escaped ( `,) except when used in MsgBox or the last parameter of any command (in which case the accent is permitted but not necessary). For example: MsgBox The current percentage is 25`%. Literal percent signs must be escaped by preceding them with an accent/backtick. Var1 := Var2 + 100 When should percent signs and commas be escaped? Variable names are always enclosed in percent signs except in cases illustrated in bold below:ġ) In parameters that are input or output variables: StringLen, OutputVar, InputVarĢ) On the left side of an assignment: Var = 123abcģ) On the left side of traditional (non-expression) if-statements: If Var1 Var2) When exactly are variable names enclosed in percent signs? However, when a script launches a program or document, the operating system usually requires quotes around any command-line parameter that contains spaces, such as in this example: Run, Notepad.exe "C:\My Documents\Address List.txt". In all other places, they are treated literally as if they were normal characters. Language Syntax When are quotation marks used with commands and their parameters?ĭouble quotes (") have special meaning only within expressions. How can I use a hotkey that is not in my keyboard layout?.Can I use wildcards or regular expressions in Hotstrings?.
#AUTOHOTKEY ASSIGN HOTKEY AND PLAY SOUND WINDOWS#


#AUTOHOTKEY ASSIGN HOTKEY AND PLAY SOUND HOW TO#

Why don't Hotstrings, Send, and MouseClick work in certain games?.Why are the non-ASCII characters in my script displaying or sending incorrectly?.Why is the Run command unable to launch my game or program?.How can I find and fix errors in my code?.I can't edit my script via tray icon because it won't start due to an error.How do I work around problems caused by User Account Control (UAC)?.Why doesn't my script work on Windows xxx even though it worked on a previous version?.Why do some lines in my script never execute?.What can I do if AutoHotkey won't install?.When should percent signs and commas be escaped?.When exactly are variable names enclosed in percent signs?.When are quotation marks used with commands and their parameters?.Previous page next page Frequently Asked Questions (FAQ) Language Syntax
