how to remove "macro scheduler" text in message bo

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

how to remove "macro scheduler" text in message bo

Post by matthiasR » Fri Jan 05, 2007 2:52 pm

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jan 05, 2007 2:58 pm

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.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Fri Jan 05, 2007 10:04 pm

I have gone with the custom dialog method. This way you can include a graphics file to display, send variable message text, control the dialog size, as well as the results (Yes, NO, Cancel) etc....

matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

Post by matthiasR » Sat Jan 06, 2007 4:23 pm

Thanks to both of you.
I will give APP_TITLE a try, as i planned to create an exe anyway.

Matthias

User avatar
JRL
Automation Wizard
Posts: 3497
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: how to remove "macro scheduler" text in message box

Post by JRL » Mon May 13, 2019 3:40 pm

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.

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  /////////////////////

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts