Page 1 of 1

Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 05:52
by Vertigo
Topic contains my question. I just want to send two messages one after the other.

I'm trying this :

Code: Select all

msg hash(,,<curitem>,1);
msg hash(,<curitemprev>,1); 

Re: Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 08:54
by admin
Do this :

Code: Select all

msg hash(,,<curitem>,1);
  msg hash(,<curitemprev>,1); 
Non-indented lines are interpreted as separate scripts. Any non-first line of a script has to be indented.

Re: Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 09:40
by PeterH
But the first line of the first (here: first and only) script may be indented, too.
(As long as it is not a caption - and then non-indentation makes sense...)

So I think it looks much better as:

Code: Select all

  msg hash(,,<curitem>,1);
  msg hash(,<curitemprev>,1); 
But it might also make sense to look like:

Code: Select all

  msg hash(,,<curitem>,1) . <crlf 2>
    . hash(,<curitemprev>,1); 
:?:

Re: Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 09:56
by admin
PeterH wrote:But the first line of the first (here: first and only) script may be indented, too.
(As long as it is not a caption - and then non-indentation makes sense...)

So I think it looks much better as:

Code: Select all

  msg hash(,,<curitem>,1);
  msg hash(,<curitemprev>,1); 
Indeed, but to me this looks like a parsing bug. I would not count on this behavior in future.

Re: Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 13:25
by PeterH
admin wrote:Indeed, but to me this looks like a parsing bug. I would not count on this behavior in future.
Oh - then I was totally wrong here :oops:

Don't know why - but I assumed that only(!) a caption starts in column 1. So I started every non-first script in a file with a caption. (What really makes sense IMHO.)

But if a file only contains 1 script, or at least all other scripts are invisible, I normally started the first ("main") script without a caption, and in Col 4...

So to be really correct in syntax, and to avoit the non-indentation of the first command, it would be best to specify:

Code: Select all

"Main"
  msg hash(,,<curitem>,1);
  msg hash(,<curitemprev>,1);
 
I hope that's correct so far?

Re: Why do consecutive msg commands bring up a popup menu ?

Posted: 23 May 2012 13:29
by admin
Yep, that's fine.