Hello community, I have a question, the Comma ( , ) must be written obligatorily in Commands? I see sometimes yes and other times not, eg Send, {RButton Up} = Send {RButton Up}.
Is better put Commas?.
Hello, A question please. Topic is solved
Re: Hello, A question please. Topic is solved
Hallo,
see: https://www.autohotkey.com/docs/Language.htm#commands
The comma separating the command name from its parameters is optional, except in the following cases: …
I personally opt to use it.
see: https://www.autohotkey.com/docs/Language.htm#commands
The comma separating the command name from its parameters is optional, except in the following cases: …
I personally opt to use it.
Re: Hello
Please another question: is supported write Commands continuously (without spaces). I remember some Script without spaces and it worked, I don't remember if had ( ; ) between command or nothing. Maybe like that:
In any case is possible compress text of a Script?, thanks.
Code: Select all
; NORMAL:
#NoEnv
SetBatchLines,-1
#SingleInstance,force
SetWorkingDir %A_ScriptDir%
Code: Select all
; COMPRESSED
#NoEnv;SetBatchLines,-1;#SingleInstance,force;SetWorkingDir %A_ScriptDir%
Last edited by BoBo on 16 May 2022, 14:54, edited 1 time in total.
Reason: Added [code][/code]-tags.
Reason: Added [code][/code]-tags.
Re: Hello, A question please.
Directives and commands need separate lines, multiple expressions per line must be separated with commas. But one command in expression mode can often contain several expressions. E.g.: F1 key switches clock on/off:
Do not ask, just try it. Provided, of course, that your script does not control a nuclear reactor.
Code: Select all
F1::SetTimer, F1 Up,% (F1:=!F1)?100:"Off"
F1 Up::ToolTip,% F1?A_Hour ":" A_Min ":" A_Sec:""
Last edited by Rohwedder on 16 May 2022, 14:59, edited 1 time in total.
Re: Hello, A question please.
Provided, of course, that your script does not control a nuclear reactor.
Re: Hello, A question please.
Whoops, sorry, I disapproved a post by accident (fat fingers ). I quoted it above.AutoX wrote:So should also work like:
; COMPRESSED
#NoEnv,SetBatchLines-1,#SingleInstance force,SetWorkingDir %A_ScriptDir%
Thanks.
But to answer it:
So, no, #NoEnv;SetBatchLines,-1;#SingleInstance,force;SetWorkingDir %A_ScriptDir% is not possible.