MessageModal problem

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
HPROS
Junior Coder
Posts: 35
Joined: Tue Sep 16, 2003 7:52 pm
Location: Columbia, CT
Contact:

MessageModal problem

Post by HPROS » Sat Mar 12, 2005 1:54 pm

I am currently on 7.3.10.5 of MacroScheduler, and have noticed that when I now use messagemodal, it wraps the test (it has a fixed number of columns). I can define the Message Box Height & Width and that creates the correct size box, however the text is still squeezed into this small fixed box with an elevator bar so you can see it all. I had several earlier scripts that ran "fine" on a few releases of MacroScheduler ago and no longer do. Here is one that used to work, but now wraps:

Here is my example:

let>ver=Version 2002.11222004.0910
Let>MSG_HEIGHT=220
Let>MSG_WIDTH=625
Let>mymsg0= C C B A - T O T A L S A U T O M A T I O N T O O L %CRLF%%CRLF% %ver% %CRLF%%CRLF% Copyright - 2004 - Hughes Professional Services LLC %CRLF%%CRLF%%CRLF% Select "OK" to Continue...
MessageModal>mymsg0

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Mon Mar 14, 2005 4:46 am

Checked Out Your Script. I Have The Same Issue.

Sorry No Idea's Yet.
FIREFIGHTER

Luciano
Junior Coder
Posts: 31
Joined: Fri Feb 11, 2005 1:10 pm
Location: Ghent, BELGIUM

Post by Luciano » Mon Mar 14, 2005 8:45 am

Hi HPROS,

Same issue.
Try to resize your message window with your mouse by moving the right bottom corner. Go to a minimum and back to maximum and observe the appearance of the OK button. Funny to see what’s happens, but work for support of MS.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Mar 14, 2005 9:24 am

Will have to look at why the objects aren't resizing properly. I'm sure this hasn't always been the case!

However, a custom dialog would be better for your needs than a message box. You can make it quite fancy with a logo, etc etc. Here's something to get you started:

Dialog>dlgWelcome
Caption=CCBA - TOTALS AUTOMATION TOOL
Top=121
Width=306
Left=77
Height=141
Label=C C B A - T O T A L S A U T O M A T I O N T O O L,29,8
Label=Copyright - 2004 - Hughes Professional Services LLC,28,32
Label=Select "OK" to Continue...,90,56
Button=OK,112,80,75,25,2
EndDialog>dlgWelcome
Show>dlgWelcome,r
MJT Net Support
[email protected]

HPROS
Junior Coder
Posts: 35
Joined: Tue Sep 16, 2003 7:52 pm
Location: Columbia, CT
Contact:

Post by HPROS » Mon Mar 14, 2005 1:05 pm

Thank you all for looking at my issue, I appreciate your efforts. As I mentioned, it used to work fine, however one of the releases changed that. I know I can attack it different ways, but I was just curious, and couldn't figure it out. I actually prefer the solution/alternative offered by Support. That is far better than what I was doing anyway. - Thanks!

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Centre Dialog Box

Post by CyberCitizen » Fri Apr 22, 2005 7:06 am

Hello,

Does anyone know if there is an easy way to centre a dialog box. Eg My macro runs on several different screen sizes & I would like to have the dialog box centred.
--
Michael Allen
NURV | CyberCitizen

"If you spend more on coffee than on IT security, you will be hacked."
White House cybersecurity advisor, Richard Clarke

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Apr 22, 2005 9:20 am

LibFunc>user32,GetSystemMetrics,screen_width,0
LibFunc>user32,GetSystemMetrics,screen_height,1
Let>width=400
Let>height=150
Let>left={(%screen_width% div 2) - (%width% div 2)}
Let>top={(%screen_height% div 2) - (%height% div 2)}

Dialog>Dialog1
Caption=Dialog1
Top=%top%
Width=%width%
Left=%left%
Height=%height%
EndDialog>Dialog1

Show>Dialog1,r
Wait>2

//subsequent shows make sure we put it back
MoveWindow>Dialog1,left,top
Show>Dialog1,r
MJT Net Support
[email protected]

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