AHK syntax(?) help Topic is solved
AHK syntax(?) help
While looking at AHK code, I notice a lot of people use "% something", does this have a name, and what does it do?
There are two kinds of people in the world: those who can extrapolate from incomplete data.
Re: AHK syntax(?) help Topic is solved
It's called forcing an expression. See the documentation here. If a parameter to a command is expected to be in legacy syntax, it says that "something" will instead be an expression. Example:
Code: Select all
MsgBox, 2 * 3 ; legacy syntax
MsgBox, % 2 * 3 ; forced expression
Re: AHK syntax(?) help
Thank you so much!
There are two kinds of people in the world: those who can extrapolate from incomplete data.
Who is online
Users browsing this forum: apeironn, Bing [Bot], madensuyu1, peter_ahk and 362 guests