Hi,
is there a way to remove or change the text "macro scheduler" in the titlebar of messageboxes? Tried to set app_title, but that does not work.
Matthias
how to remove "macro scheduler" text in message bo
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You can use APP_TITLE for compiled macros. Has no effect on macros run within Macro Scheduler.
Alternatively use the Dialog Designer to create your own custom message box. You can mimic the standard message dialog, or design it any way you like, and this can have any title you choose.
Alternatively use the Dialog Designer to create your own custom message box. You can mimic the standard message dialog, or design it any way you like, and this can have any title you choose.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: how to remove "macro scheduler" text in message box
The following code demonstrates an easy method to change the standard Message> title in an uncompiled script. There is also code to make a standard message modal. This code might be needed because you could not otherwise alter the title of a standard modal message box in an uncompiled script.
You can do the same with most any window. For example, open Notepad then run the following.
Code: Select all
Message>This is a standard message window with program induced modality. It displays "My Specified Title" rather than "Macro Scheduler Message"
////////////////////// Rename the standard message window /////////////////////
Let>vMyReplacementTitle=My Specified Title
GetWindowHandle>Macro Scheduler Message,vWinHandle
LibFunc>user32,SetWindowTextA,res,vWinHandle,vMyReplacementTitle
//////////////////// End Rename the standard message window ///////////////////
/////////////////////// Make a Standard Message Modal ///////////////////////
Label>PseudoModalMessageLoop
Wait>0.01
IfWindowOpen>vMyReplacementTitle,PseudoModalMessageLoop
///////////////////// End Make a Standard Message Modal /////////////////////
Code: Select all
////////////////////// Rename a Notepad window /////////////////////
Let>vMyReplacementTitle=My Specified Title
GetWindowHandle>Notepad*,vWinHandle
LibFunc>user32,SetWindowTextA,res,vWinHandle,vMyReplacementTitle