Overview
Reads a short (2 bytes) number from the specified memory address. Range: unlimited.
(number) Address of Memory.
(number) Specified length(in bytes) if you want get all char set it -1.
(number) Get string in memory as unicode, ascii or utf8 (this parameter now is optional and default is ascii).
(string) Return String 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.PutString(mem, "Hi", -1, "Ascii") Dialog.Message("", Memory.GetString(mem, -1, "Ascii")) -- Print Hi Memory.Free(mem)
See also: Related Actions