Page 1 of 1

cryptic style

Posted: 07 Jan 2017, 14:17
by User99
Hi

I've read this in your helpfile:
"You might be wondering "How the crud am I supposed to know that ^ means CTRL?!". Well, good question."

Well, no, this was actually not what I thought. More somehing like:
"Why the heck do you use cryptic symbols to express the words that symbolize it?"
"Why not using CTRL for CTRL?"
Is it so importend that nobody can read the code? Is it so importand to waist brain capacity by learning a cryptic style to make code smaller, insteed of using it for what the user expect to do?

so long

Re: cryptic style

Posted: 08 Jan 2017, 10:14
by nnnik
Because it is more complex than the user expects it to be.
I could go into detail here but feel that said time would be a wasted effort.

Re: cryptic style

Posted: 08 Jan 2017, 10:32
by just me
Reading a few lines more, you'll find
(For the full list of symbols, see the Hotkey page)
In short:
^ is a modifier symbol used as a prefix for another key.
Ctrl is the name of the Ctrl key itself.

Re: cryptic style

Posted: 08 Jan 2017, 11:33
by guest3456
User99 wrote: I've read this in your helpfile:
"You might be wondering "How the crud am I supposed to know that ^ means CTRL?!". Well, good question."
that's from the user-created tutorial

User99 wrote: Well, no, this was actually not what I thought. More somehing like:
"Why the heck do you use cryptic symbols to express the words that symbolize it?"
"Why not using CTRL for CTRL?"
Is it so importend that nobody can read the code? Is it so importand to waist brain capacity by learning a cryptic style to make code smaller, insteed of using it for what the user expect to do?

so long
in many command prompts, ascii control characters are indicated with the caret ^ symbol, so this notation is standard for that key:
https://en.wikipedia.org/wiki/Caret_notation
https://en.wikipedia.org/wiki/Control_character

Win+R then cmd then at the prompt, hold down CTRL+some letters and youll see

i think you'd have to ask Chris, the original developer, why he chose the symbols that he did for Shift,Alt,Win

it may be worthwhile to discuss a different modifier syntax but i dont see it as a big issue compared to the other issues that v2 tackles

Re: cryptic style

Posted: 09 Jan 2017, 02:06
by lexikos
I'm guessing that the syntax was simply copied from AutoIt v2, and maybe WinBatch (or something else) before that. AutoIt v3 appears to use the same symbols.

SendKeys uses + for Shift, which may have influenced it, but it uses % for Alt.

Re: cryptic style

Posted: 11 Jan 2017, 22:06
by joedf
I'm thinking it's AutoIt also... and they probably chose it because of what guest3456 mentioned....

Re: cryptic style

Posted: 12 Jan 2017, 00:36
by Noesis
Perhaps my memory is flawed, but to me some of it's been a "standard" for a while. ^ has always been ctrl going back to dos days it's what would appear with ctrl key combos that didn't do anything, and + as shift is just kind of logical and used by more than autoit, or ahk (I don't think I've seen a program that fakes key presses and doesn't use it as a shift modifier, except the total gui ones which require use say a checkbox). Win and alt modifiers tend to be the ones that vary between programs.