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
MessageModal problem
Moderators: JRL, Dorian (MJT support)
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
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
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]
[email protected]
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!
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Centre Dialog Box
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
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
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
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]
[email protected]