Can I pilot a window to have its close button disabled based on a specific string?
Yes. Disabling close buttons or setting a window topmost can be done automatically according particular windows captions containing specific strings. WinTopMost analyzes windows caption titles of programs running on your desktop (can work with many strings and set close button inactive for several windows). In disable close feature for an exact string match use “/” delimiter at begining and end of the characters string you need to match.