Mit einem oder mehreren Kleinbuchstaben am Anfang eines Variablennamen kann man kennzeichnen, um was für eine Art von Variable es sich handelt.
Ein "s" sagt aus, dass es sich bei der Variable um einen String handelt, "i" bedeutet Integer, etc.
Muss man nicht machen aber erleichtert das Lesen des Codes
Edit:
prefix | covering type | example |
a | Arrays | $aArray[0] |
b | Booleans | $bBool = True |
d | Binaries | $dBinary = Binary("0x80000000") |
e | Constant variable | Local Const $eEulersConstant = 2.7182818284590452 |
f | Floating point | $fFloat = 0.123 |
h | Handles (and GUI handles) | $hGUI = GUICreate("My GUI") |
i | Integer | $iInteger = 10 |
id | An AutoIt controlID | $idButton_Ok = GUICtrlCreateButton("OK", 5, 5) |
m | Maps | $mMap[] |
n | General number (no preference) | $nNumber = 0 |
p | Pointers | $pRect = DllStructGetPtr($tRECT) |
s | Strings (chars included) | $sString = "Hello world" |
t | Structures | $tSTRUCT = DllStructCreate($tagSTRUCT) |
tag | Structures definition | $tagDATE = "struct; word Year;word Month;word Day; endstruct" |
v | Variant | $vData = ClipGet() |
Quelle: https://www.autoitscript.com/wiki/Best_codi…es_of_Variables