Retention of global variables in the registry of Windows:
ASM can preserve lines in the registry of Windows. In contrast to UO.GetEasyUO/UO.SetEasyUO the records in the registry created ASM are not compatible from EasyUO. But they make it possible to create in the registry of section and to preserve variables under any names. You don't remember what this section exist in the registry or not?”, because ASM takes everything to itself. If there is no section, it will be created. If there is no variable, but you want to appropriate to it value, it will be created. It is immediately after starting ASM disposed to the work with the section "common". Root section for ASM - "HKEY_LOCAL_MACHINE\SOFTWARE\InjectionASM".
The most common use of such variables is this the connection of scripts on several Injection or the connection of script and external program.

asmSetRegistryKey(string Name)
Function assigns the section of registry with which will work your script. As the name are permitted only numbers, letters of english alphabet and the symbol of underline.

string asmGetRegistryKey()
Function returns the section of registry with which will work your script. As the name are permitted only numbers, letters of english alphabet and the symbol of underline.

asmSetRegistryVar(string Name, string Value)
Function preserves in the registry the value 'Value' by the name 'Name'. As the name are permitted only numbers, letters of english alphabet and the symbol of underline.

string asmGetRegistryVar(string Name)
Function returns значениеthe value, which is stored in the registry by the name 'Name'. As the name are permitted only numbers, letters of english alphabet and the symbol of underline.

Пример:
...
  UO.asmSetRegistryKey('TestShard_Sparing'); Set key in the registry for the script
...
  If UO.asmGetRegistryVar('Fighter1')=='' Then; If the position of the first fighter is free
    UO.asmSetRegistryVar('Fighter1', UO.GetSerial('self')); occupy it
  Else; Otherwise
    UO.asmSetRegistryVar('Fighter2', UO.GetSerial('self')); occupy a position of the second fighter
  EndIf
...