module requests ? Thread last updated on 2003-02-10 05:27:01

Posted by member 884 on 2003-01-28 22:37:51

I posted about the same message on ls.com but nobody cares so maybe ls.net cares...

modules are great, but sometimes you need more of them to be cool.
I dont make mods but I think mod makers rule, so dont kill me if I have offended anybody in asking this...

I need a mod that works like and Open dialog in win32 to make/change $environment Variables$ and control other things. So far I have only been able to do this with alerts telling the user how to type in the request into LSXcommand....eg Select Folder for deskfolders.

I really feel that an Open dialog mod would be a good addition ...

Posted by member 1 on 2003-01-28 23:01:26 link

maybe they didn't reply because they didn't understand the question? Gahd knows Im lost. :)

Posted by member 884 on 2003-01-29 01:35:23 link

hmmmmmm.. ok

Open Dialogs are those things in say Notepad, when you click on file then open, up pops an Open Dialog box where you can select files and click OK.

in the mod the OK click would set it as an $varstring$: environment variable, like $LitestepDir$ in your step.rc.

you could then make other Modules (like DeskFolders for instance) use this $varstring$ in there configuration.

so you could have a shortcut that says "Choose DeskFolder Folder" on it and make it so that when the user clicks on it one of these "Open Dialog boxes" comes up and the user can set there Deskfolder Folder by selecting the folder in the Dialog box.

OK ?

Posted by member 99 on 2003-01-29 02:00:26 link

Hrm, how do you want the result, where would it put it? If it just set the $var$, you'd have to have them do this every time you resarted litestep. If you want it to write it to step.rc, you'll need to specify *where*. (tho personally, I'd prefer to leave that to existing methods)

I could probly whip something up tomorrow, but it'd be flexible and very hard to understand. (using ^@...^ ;)

Posted by member 333 on 2003-01-29 03:27:53 link

From what I make of this request, I'd say it is possible to do it with ckdialog.dll + mzscript.dll + textedit.dll. It would take quite a bit of trying and failing, of course (and thorough readme-reading!), but I'm sure it can be done.

Posted by member 503 on 2003-01-29 10:20:24 link

From the example you gave, you might want a "Browse for Folder" dialog instead of an "Open File" dialog. Either way, I agree with RabidCow -- it would be easy to write except figuring out how to return the result.

Posted by member 884 on 2003-01-29 21:03:11 link

mm the !recycle hurdle was the biggest problem to get around. I dont know how youd make the variable accessible without recycling. Maybe in the next build the developers could incorporate a couple of that are updated every so often. Then mods could change them and other mods could read them.. but thats a long shot.

how would I do it with ckDialog ? I thought that was for making mods or something...

Posted by member 1 on 2003-01-29 21:20:44 link

you can't refresh the settings automatically the way they are now. you can either edit them directly in memory or you can edit the file, but editing both doesn't seem to be possible. Instead of !Recycle, for a quick fix use !Refresh.

Posted by member 884 on 2003-01-29 21:39:24 link

ohh yeah the !Refresh. that could work.
Yo Rabidcow/Maduin, could you whip it up?
Have 2 dialogs, File and Folder ones...that would be wicked!

Posted by member 915 on 2003-01-29 23:09:23 link

hehe, I really think the reason that no one responded to her request would be that not many people really visit ls.com for some odd reason.

Posted by member 7 on 2003-01-30 02:03:53 link

if you just need to refresh the step.rc settings !reload should work. Modules won't update their settings though.

Posted by member 99 on 2003-01-30 14:14:58 link

Eh... you can't just say "use refresh", you have to restart your computer sometime, and there's no avoiding restarting litestep then. I dunno what exactly you want to use it for, but if people have to reselect the stuff every time they start up their computer they won't be happy.

I've got some annoying homework to do today, if this is still here tomorrow I'll see what I can do.

Posted by member 884 on 2003-01-30 21:51:52 link

RabidCow: I can always use Textedit and write the variables to disk when they select it.

ilmcuts: hmmm !reloadmodule ? would that work if used in conjunction with the a litestep !reload ?

Posted by member 99 on 2003-01-31 01:56:45 link

Well there ya go, that'll work for recycle too.

Posted by member 7 on 2003-01-31 02:05:50 link

!execute [!reload][!reloadmodule $path$module.dll] - should work in theory *shrug*

Posted by member 884 on 2003-01-31 03:05:51 link

quick quiz: LSXcommand does not doing anything with its Browse Folder / browse file dialogs apart from run it(file) or open it(folder) right?

ps: I am a 17 year old MALE from NZ.

Posted by member 884 on 2003-01-31 19:55:56 link

I mean, it doesent save it in any thing "static" enough to get other modules read it ?

Posted by member 1365 on 2003-01-31 23:57:21 link

its saves some crap in the modules.ini but not what your talking about

Posted by member 884 on 2003-02-01 06:04:35 link

psyonide: oh... ok....

is someone gonna do this ? or should I learn C++ and leave you all alone ?

Posted by member 365 on 2003-02-01 09:23:30 link

hey c++ or c# in the new .NET "language" are always great to have in your knowledge database, even if you never get to use the full potentiol of it....^_^

Posted by member 884 on 2003-02-01 10:41:47 link

yeah but I want this mod now... actually I dont really I think this'll be the first mod I 'learn' how to make. Thanks for all your help anyway people's. Listening to all you LS_JediMasters taught me heaps.

Posted by member 99 on 2003-02-01 11:07:38 link

I've started, but go ahead if you want. I'm throwing in font and color dialogs as well.

Posted by member 884 on 2003-02-01 12:52:29 link

sweeet duuude... will you release it at loose-screws ? yes... yes ...
niceness.

Posted by member 99 on 2003-02-02 00:05:02 link

Posted by member 884 on 2003-02-03 21:58:29 link

WOW... coolness. Still it dont really do what I want...
Deskfolders cant open the "^@dp^" so mmmmmmm.....
+
!ComDlgFile : dont do anything.??

Posted by member 99 on 2003-02-04 02:02:57 link

How are you trying to use it? ^@dp^ and such only work inside of !comdlg... bang commands, like: !ComDlgFolder !alert "^@dp^"

Posted by member 884 on 2003-02-05 04:15:10 link

mmm yes yes: !ComDlgFolder !Deskfolder browse folder(^@dp^)

but this don't work? is it Deskfolder or what ? it can open an $environVar$ but you already know that....

Posted by member 99 on 2003-02-05 11:19:39 link

I don't know, that works for me. You might want to check what !ComDlgFolder is giving you by enclosing the rest in an !alert:
!ComDlgFolder !alert "!Deskfolder browse folder(^@dp^)"
You might be choosing a folder that the module can't easily convert to a path.

Posted by member 884 on 2003-02-06 00:01:53 link

I did a clean alert = !ComDlgFolder !alert "^@dp^"
and it comes up with tthe full path in it....

Does it work with deskfolders for you? maybe its some 95 compatability crapiness....

Posted by member 99 on 2003-02-06 14:40:43 link

Yep, works with deskfolders. If it works with !alert, and you can copy the exact path given by that into the !deskfolder, there should be no problems.

Posted by member 884 on 2003-02-07 04:48:56 link

mm yeah cpm can do it too....

oh boo hoo 95 is really real upgrade needed. hahahah

Posted by member 884 on 2003-02-07 19:35:41 link

ok ok ok oh my god....

I must have typed it wrong or something because I copied it from your second to last message Rabidcow, and it works fuckin sweet !!!!

yeah wicked mod man, fucking outrageous.

Posted by member 884 on 2003-02-10 05:27:01 link

hehehe Choose readable Font so your blind ass can use my theme, AHAHAH!