Csc
Revision as of 10:31, 26 April 2009 by imported>Low Post (New page: A command for Pluggy. '''Syntax:''' (CodeASCII:short) csc ScanCode:short ''CaseUP:bool'' ''StringID:long'' ''Append:bool'' ''Global:short'' Converts a DX-Scancode ...)
A command for Pluggy.
Syntax:
(CodeASCII:short) csc ScanCode:short CaseUP:bool StringID:long Append:bool Global:short
Converts a DX-Scancode returned by GetKeyPress into an ASCII-Code and, if specified, appends the respective letter to a (Pluggy)string.
Notes:Edit
- CaseUp defines whether csc assumes Shift is pressed/CapsLock is enabled (1) or not (0). Default is 0.
- If Append is 0 the letter replaces the whole string instead of just appending it. Default is 1.
- If you want to modify a string from another mod, you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the string is protected the function will fail.