clipboard contents not recognised

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

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

Post by armsys » Fri Dec 20, 2002 12:48 pm

Hi,

PMJI, how about:

Sen>"Hello World"

All character strings should be delimited by a pair of single/double quotes.
On the other hand, %SPACE% is strenously cumbersome.


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 » Fri Dec 20, 2002 3:54 pm

That would cause untold nightmares with backwards compatibility.

While working on the next release we've done two things:

1. Added an option to the editor to view all hidden chars.
2. Added VAREXPLICIT option. When set to 1 variables will only be resolved if embedded by % chars. e.g.:

Let>VAREXPLICIT=1
Let>Name=Fred
Send>Name
Send>%Name%

The first Send would send the literal 'Name'. The second Send would send the value 'Fred'.

The default for VAREXPLICIT=0 which would yield current results where both Sends would send 'Fred'.
MJT Net Support
[email protected]

Ernest

Post by Ernest » Fri Dec 20, 2002 9:38 pm

Amen :mrgreen: [So sei es!]

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

Post by armsys » Sat Dec 21, 2002 3:04 am

For the last 60 years in the software industry, the backward compatibilities is, arguably, not a big issue. In this case, the single/double quote syntax can be handily resolved:

If the first char after Let>= isn't a signle/double quote, then maintain status quo;

If the first char after Let>= is a single/double quote .and. a matching single/double quote is found on the same command line, treat all chars inside the pair of the single/double quotes as a character string; otherwise, issue a syntax error.

Though we should practice democracy in programming language design, we ought not deviate from the wisdom of the convention of the current programming languages. Especially, Macro Scheduler should be syntactically similar to VBscript and CMD batch.


Cheers,
Armstrong Wong
Hong Kong

FS

Post by FS » Sat Dec 21, 2002 3:02 pm

Well, there is the question about compatibility backwards.

In any event, it is needed that the Macro Scheduler Editor has the feature of "Remove spaces at the end of every line".


I think it is very bad to allow the spaces in variable names or label names. When you do not know this you got a lot of problems.

I think it is good to allow spaces in the middle of a string (some like:
Send>Hello, how are you?)

The problem is the space at the end of a Send.

The most important thing is the request feature of "Remove spaces at the end of every line". Other important thing it is to explain in the manual the "invisible chars".

Indeed, I will never use spaces in variable or label names. Have you ever used?

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