ToShort()

Auto Hotkey

ToShort

Convert an integer to signed short type.

OutputVar := ToShort(ByRef IntOrVar)
Command  Example: ToShort var
Function Example: short := ToShort(65535)

Parameters

OutputVar

The name of the variable in which to store the converted integer.

ByRef IntOrVar

The value to convert, if a variable is passed, converted value will be written to it.

Related

DllCall, DynaCall, #DllImport, WinApi