Asc
From AutoIt Wiki
Asc returns the ASCII code of a character. Adapted from AutoIt docs.
Contents |
[edit] Syntax
Asc("char")
[edit] Parameters
| char | Any valid ASCII character. |
[edit] Return Value
Returns the ASCII code for char. Strings return the value of the first character.
[edit] Example
$code = Asc("A") ; "A" = 65
If $code = 65 Then
MsgBox(0,"ASCII code for A is ", $code)
Else
MsgBox(0,"Why isn't A = 65?", $code)
EndIf
