Multiple files executed using one popup line Thread last updated on 2004-05-11 12:18:59

Posted by member 61084 on 2004-05-10 00:19:59

I can't seem to get this, basically, I want a whole bunch of text files or programs or whatever to open all at once....

For a quick example,

*Popup "edit all" ["$TxtEditor$" "$ThemeDir$theme.rc"]["$TxtEditor$" "$PersonalDir$evars.rc"]["$TxtEditor$" "$PersonalDir$popup.rc"]["$TxtEditor$" "$PersonalDir$hotkey.rc"]

Such that I can edit all the files at once rather than opening them individually... among other things, sometimes it works sometimes it doesn't...

I'm using the newest litestep RC2

Posted by member 1 on 2004-05-10 00:56:19 link

well...that should never work. you need to add !execute as covered in the docs to get that to work.

Posted by member 61084 on 2004-05-10 01:01:06 link

I did, and it still didn't work, properly. kthx.

These don't work.

!execute [blah1][blah2][blah3][blah4]

or maybe like this

!execute [blah1]!execute [blah2]!execute [blah3]!execute [blah4]

or...

!execute [blah]|!execute [blah]|!execute [blah]|!execute [blah]

or...

!execute [blah1|blah2|blah3|blah4]

This does work

oh, and just so you know, when I do it like this

!execute [blah1][blah2]

it works.

Posted by member 61084 on 2004-05-10 01:02:38 link

It seems to have issues, when you go to the third and sometimes fourth blah :P

Posted by member 111 on 2004-05-10 01:55:04 link

> oh, and just so you know, when I do it like this
> !execute [blah1][blah2]
> it works.

action can be up to 256 symbols only (with already expanded eVars, of course)
so you need to:
a) make an alias:
*NetLoadModule alias-0.1
*alias !edit_all !Execute [bang][bang][bang][bang]


or

b) use mzscript
*NetLoadModule mzscript-0.9-beta_12
mzScriptUseStep
*Script bang !ShowTVProgram
*Script exec !bang
*Script exec !bang
*Script exec !bang
*Script exec !bang
*Script ~bang

Posted by member 61084 on 2004-05-10 05:29:19 link

nice. thx!

Posted by member 61084 on 2004-05-10 05:34:35 link

but where did you find that information? I couldn't find it?

Posted by member 111 on 2004-05-10 07:04:01 link

from the sources :0

it is just a bug and need to be fixed I guess %)

Posted by member 61084 on 2004-05-10 08:53:48 link

does that mean it's NOT documented?

Posted by member 111 on 2004-05-10 10:31:20 link

1) where you've seen _documented bugs_?
2) where you've seen _actual_ popup2 documentation?

Posted by member 7 on 2004-05-10 13:14:00 link

1) There are quite a few known problems
2) http://www.flatface.net/~namaide/lsdocs/popup.html

Please report the bug you've found. We can't fix bugs that we don't know. It's surprising how many people expect bugs to be magically fixed without anyone ever reporting them.

Posted by member 111 on 2004-05-10 15:39:22 link

I found it less than a week ago... I just wanted to find a reason first %)

Posted by member 61084 on 2004-05-10 15:45:40 link

I didn't realize it was or was not supposed to do that, I was just trying to get it to work :P

Posted by member 1 on 2004-05-10 15:58:02 link

it was a known limitation that was discussed with .24.6 was released. the final menatlity was that nobody would run anything with more than 256 characters in it so they didn't have to change the variable type.

Posted by member 99 on 2004-05-10 23:23:30 link

You sure it's not 4096?

Posted by member 111 on 2004-05-11 01:04:46 link

orginally it is a result of experiments...

Posted by member 1 on 2004-05-11 02:18:52 link

when the discussion took place it was set to 256...unless ilmcuts changed something recently because I ran into that bug recently also with a config menu I wrote.

Posted by member 99 on 2004-05-11 12:18:59 link

Well, this:
ten 1234567890
fifty $ten$$ten$$ten$$ten$$ten$
*Popup "Test" !alert $fifty$$fifty$$fifty$$fifty$$fifty$$fifty$
correctly pops up an alert with 300 digits in it. And I don't see any limit for commands starting with ! other than 4096 for the entire line.

(actually I tried it without all the var expansion first, but I didn't want to screw up the forum layout)