Editing Titel of Message or MessageModal box

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Editing Titel of Message or MessageModal box

Post by migro » Fri Feb 15, 2008 8:03 pm

Hi,

Is there a possibility to Display the Macros/Applications name in the Titlebar of a messagebox instead of "Macro Sheduler Message"?

Thanks
regards
migro

User avatar
Phil Pendlebury
Automation Wizard
Posts: 543
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Fri Feb 15, 2008 8:19 pm

Put

Code: Select all

Let>APP_TITLE=Your Application name
At the start of your code somewhere.

:-)
Phil Pendlebury - Linktree

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

It works :lol:

Post by migro » Sat Feb 16, 2008 12:35 am

Thanks a lot.

i found this before, but haven't realized that the app-title only shows up, if the macro is compiled....
regards
migro

User avatar
Phil Pendlebury
Automation Wizard
Posts: 543
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Sat Feb 16, 2008 12:28 pm

Yes compiling the script is required to make that work.
Phil Pendlebury - Linktree

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

Post by Marcus Tettmar » Sat Feb 16, 2008 1:09 pm

Alternatively, make your OWN message box with the custom dialog designer. E.g.:

Code: Select all

//Dialog definition - defined ONCE at start of script
Dialog>dlgMessage
   Caption=My Message
   Width=290
   Height=225
   Top=CENTER
   Left=CENTER
   Max=0
   Min=0
   Close=1
   Resize=0
   Memo=msMemo1,8,8,257,145,Put your message here
   Button=OK,96,160,75,25,2
EndDialog>dlgMessage

//Show message box:
Show>dlgMessage,r

//Change message and show message box again:
Let>dlgMessage.msMemo1=Some other message
ResetDialogAction>dlgMessage
Show>dlgMessage,r
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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