jeeswg's tutorial pages

Helpful script writing tricks and HowTo's
User avatar
jeeswg
Posts: 247
Joined: 19 Dec 2016, 01:58
Location: UK

jeeswg's tutorial pages

04 Jan 2017, 16:49

I will be posting external links with full AutoHotkey tutorials etc in future,
but until then I will post occasional things here.

For this syntax character guide, please state any omissions,
or make any comments.

==================================================

AUTOHOTKEY SYNTAX: CHARACTER GUIDE

[ANSI 32-255]
!"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
`abcdefghijklmnopqrstuvwxyz{|}~
€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ
 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

[USEFUL LINK]
Variables and Expressions
https://autohotkey.com/docs/Variables.htm#Operators

[ASCII CHARACTERS 33-126 MINUS LETTERS/DIGITS][126-32-52-10=32]
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
! NOT, (SendInput: alt)
" assign text
# directives, (SendInput: win)
$ (hotkeys: hook)
% variables (command style), variables (expression style), function names
& address, bitwise-and, && AND
'
( continuation section, if statements, functions, objects
) continuation section, if statements, functions, objects
* multiply, dereference, variadic functions, ** powers, /* comment block start, */ comment block end, (hotkeys: wildcard)
+ add, ++ increment, (SendInput: shift)
, (warning: not decimal point), multi-statement
- subtract, -- decrement
. decimal point, concatenate, objects
/ divide, // floor divide, /* comment block start, */ comment block end
: ?: ternary operator
; comments
< less than, << bit shift left, <> not equal to
= [SEE EQUALS SECTIONS AT BOTTOM]
> greater than, >> bit shift right, <> not equal to
? ?: ternary operator
@
[ objects
\
] objects
^ (warning: not powers), bitwise-exclusive-or, (SendInput: ctrl)
_
` escape sequences
{ nested brackets, (SendInput)
| bitwise-or, GUI parameters, || OR
} nested brackets, (SendInput)
~ bitwise-not, (hotkeys: native)

[EQUALS]
:= assign
+= add
-= subtract
*= multiply
/= divide
//= floor divide
.= append
|= bitwise-or
&= bitwise-and
^= bitwise-exclusive-or
>>= bit shift right
<<= bit shift left

[EQUALS][FURTHER USES]
= assign, compare case insensitive
== compare case sensitive
~= RegExMatch
>= greater than or equal to
<= less than or equal to
!= not equal to

==================================================

[CHARACTERS THAT SOMETIMES REQUIRE ESCAPING]
! SendInput
" expression style
# SendInput
$
% command style
&
'
(
)
*
+ SendInput
, command style, if var contains
-
.
/
:
; command style, expression style
<
=
>
?
@
[
\
]
^ SendInput
_
` command style, expression style
{ SendInput
|
} SendInput
~

==================================================

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 7 guests