MoneyWorks Manual
Edit
GetWindowID (windowRef)
The windowID is a string denoting the class of the window. E.g. transaction entry windows have a windowID of “F_TRANS”. Window messages will usually be implemented with window-specific handler names incorporating the windowID, so its value is usually implicit. If you use a general handler, you can get the windowID from the windowRef using the GetWindowID() function.
Availability: within an MWScript handler