Quote:
I searched the scripts forum in vain
What about the AHK Help?
Quote:
Transform
--------------------------------------------------------------------------------
Performs miscellaneous math functions, bitwise operations, and tasks such as ASCII/Unicode conversion.
Transform, OutputVar, Cmd, Value1 [, Value2]
[...]
Asc, String: Retrieves the ASCII code (a number between 1 and 255) for the first character in String. If String is empty, OutputVar will also be made empty. For example: Transform, OutputVar, Asc, %VarContainingString%. Corresponding function: Asc(String).
Chr, Value1: Retrieves the single character corresponding to the ASCII code indicated by Value1. If Value1 is not between 1 and 255 inclusive, OutputVar will be made blank to indicate the problem. For example: Transform, OutputVar, Chr, 130. Corresponding function: Chr(Number).
[...]
HTML, String: Converts String into its HTML equivalent by translating characters whose ASCII values are above 127 to their HTML names (e.g. £ becomes £). In addition, the four characters "&<> are translated to "&<>. Finally, each linefeed (`n) is translated to <br>`n (i.e. <br> followed by a linefeed).