Windows manipulation:
ASM has a few functions for work with windows (tasks).

UO.asmUOHide()
Function hide window of Ultima Online.

UO.asmUOHideEx()
Function hide window of Ultima Online and window of Injection.

UO.asmUOShow()
Function is inverse of UO.asmUOHide() (visible window of UO).

UO.asmUOShowEx()
Function is inverse of UO.asmUOHideEx() (visible windows of UO & Injection).

UO.asmUORestore()
Function restore window of Ultima Online, place it to desctop (coordinates 0,0), zoom it to floor size (without black margins), switch it to visible.

UO.asmUORestoreEx()
Function switch to visible window of Injection, restore window of Ultima Online, place it to desctop (coordinates 0,0), zoom it to floor size (without black margins), switch it to visible.

For example:
sub main()
  UO.asmUOHide() ; hide UO window
  Wait(2000) ; wait
  UO.asmUORestore() ; restore UO window сн
end sub