Why do consecutive msg commands bring up a popup menu ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Vertigo
Posts: 21
Joined: 23 May 2012 04:48

Why do consecutive msg commands bring up a popup menu ?

Post 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); 

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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); 
:?:

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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?

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Yep, that's fine.

Post Reply