Overview
Reads a short (2 bytes) number from the specified memory address. Range: -32768 to +32767.
(number) Address of Memory.
(number) Return short that reads from memory.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
mem = Memory.Allocate(1024) Memory.PutShort(mem, 10245) Dialog.Message("", Memory.GetShort(mem)) -- Print 10245 Memory.Free(mem)
See also: Related Actions