Size of Message window

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
unclejoe
Newbie
Posts: 14
Joined: Wed Nov 06, 2002 10:43 am
Location: Poughkeepsie, NY

Size of Message window

Post by unclejoe » Wed Jan 22, 2003 8:19 pm

Having moved to 7.15 from 6.x, I notice that the message window is displayed with scroll bars. I was told to use ResizeWindow. This does put the scrollbars to the top left of the window so that I can see the message, but no matter what size I try, there are still scroll bars shown which must be manipulated for me to see the OK button at the bottom of the window. Is there any way to turn off the scroll bar feature so I can see the entire window as I could in 6.x?

Lumumba

Post by Lumumba » Thu Jan 23, 2003 5:55 pm

Maybe VBScript would meet your requirements (MsgBox)
Have a look a sample scripts at the script (download) area.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Jan 28, 2003 2:05 am

Hi unclejoe,

Would you please let us know if you have resolved the problem to your satisfaction? Thanks.

Happy scripting.

unclejoe
Newbie
Posts: 14
Joined: Wed Nov 06, 2002 10:43 am
Location: Poughkeepsie, NY

Post by unclejoe » Tue Feb 04, 2003 3:07 pm

Sorry for the delay in getting back. I had some serious system problems and was unable to play around with this. I have created a maro to issue a Displaymessage. which does the job. However I am having a problem passing the message to this macro from my calling macro. I am obviosly missing something. An example of parameter passing (both calling and caller side) would be helpful
Joe Mueller
[email protected]

Lumumba

Post by Lumumba » Tue Feb 04, 2003 10:10 pm

Script A.scp

Code: Select all

Macro>C:\B.scp /Message=Make love not war !

Script B.scp

Code: Select all

Let>Alert=<html><title>George W's famous last words</title><body><p>%Message%</p></body></html>
WLN>C:\A.htm,RESULT,%Alert%
Run Program>C:\Program Files\Plus!\Microsoft Internet\iexplore.exe -k C:\A.htm
:arrow: Leave the webpage which opens in "kiosk mode" with F11. :wink:

unclejoe
Newbie
Posts: 14
Joined: Wed Nov 06, 2002 10:43 am
Location: Poughkeepsie, NY

Post by unclejoe » Wed Feb 05, 2003 9:12 am

Ah! Thank you Lumumba.
The part of the parameter passing I missed was wrapping the parameter variable in the called macro with %'s:oops:. My resulting msgbox macro now looks exactly what I used to get in the previous release for message., no scroll bars and visable OK button:) . Thanks for your help. For the record here is my final version.
i
VBSTART
Sub DisplayMessage (msg,title)
MsgBox msg,0,title
End Sub
VBEND
VBRun>DisplayMessage,%message%,Macro Scheduler Message





Joe Mueller
[email protected]

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