Welcome to .PDF manual

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
GT

Welcome to .PDF manual

Post by GT » Fri Dec 13, 2002 4:43 pm

Well, I think it is a great idea to make a .PDF file with the commands of Macro Scheduler.

But why only with the commands? It would be very useful a .PDF file with the complete manual of Macro Scheduler and not only the commands. As you can see, the help also contains other issues than commands.

Another issue, how do one work with arrays in MS?

Ernest

Post by Ernest » Fri Dec 13, 2002 6:53 pm

Hi GT,
maybe I've missed the point? :wink:
Where's the Technical/Scripting issue ??

I really respect your suggestion, but next time - please use the General Discussion Forum, cause this is less a technical than a general issue, isn't it? :roll:

Bye,
Ernest

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

Post by armsys » Sun Dec 15, 2002 10:32 am

Hi GT,

PMJI, you can't master Macro Scheduler by reading command_ref_7.1.pdf. Your ultimate knowledge base of Macro Scheduler is right here on http://www.mjtnet.com.

>Another issue, how do one work with arrays in MS?
Macro Scheduler's VBscript extension provides this feature and many more.

Wish you luck.

Cheers,
Armstrong Wong
Hong Kong

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

Post by support » Sun Dec 15, 2002 7:14 pm

Simple MacroScript array examples:

Let>Names[1]=Fred
Let>Names[2]=Sally
Let>k=3
Let>Names[%k%]=Geoff

Let>k=1
Repeat>k
MessageModal>Names[%k%]
Let>k=k+1
Until>k,3

Re the manual - it is not a manual it is the MacroScript command reference and therefore details the MacroScript language. For general usage instructions for the software interface itself use the standard help system - just press F1.
MJT Net Support
[email protected]

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Dec 15, 2002 8:55 pm

I had a problem running the sample array script. (Using 7.1.12).
I was only getting a display that showed Names[1], etc.

I added two rows, modified the Message line, and increased Until count to 4. The result is here:
=============================

Let>Names[1]=Fred
Let>Names[2]=Sally
Let>k=3
Let>Names[%k%]=Geoff

Let>k=1
Repeat>k

//Added the next 2 rows
Let>Col=Names
Let>Name=%Col%[%k%]

//Modified the next row
MessageModal>%Name%

Let>k=k+1

//Increased count from 3 to 4
Until>k,4

=========================
The final result is a Message window that displays each of the names in the array.

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

Post by armsys » Sun Dec 15, 2002 11:27 pm

Hi Support,

Thanks for revealing the extened ARRAY support of Let>, which isn't mentioned in the manual.

On the other hand, based upon your sample code, in the absense of any declaration statement, are
Name[1], Name[2],..
actual array elements? :?:

If not, then Bob Hansen's code

Code: Select all

Let>Names[%k%]=Geoff 
won't work. Please enlighten us. Thanks.

Armstrong Wong
Hong Kong

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Dec 15, 2002 11:50 pm

No credit to me for that code.

It is a variation on the code supplied by Support. Give them the credit.

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