I have some truecrypt-containers which I open using dlgchoose. These are "fixed" containers. Now I want to open temporary containers (always different named and path) with dlgopen. Is it possible to combine these into one button?
@set var = {dlgchoose|Choose container:|Test1=D:\File2+Test2=D:\File2+...}
Now "..." should be placed by a command that opens the file dialog if choosen and give the path/filename to var.
This is not really answering your question, I know, but maybe there's a better way:
For the fixed containers, would a menu or context menu be better? I'm not a fan of {dlgchoose} as the pop-up dialog with a drop-down in it takes more clicks than using a menu.
For the random containers, I would navigate to them in Opus and use a button or filetype context menu on them to mount them.
You could put the mounting command into a User Command which everything else called in order to keep that logic in one place to make it easier to change if needed.
Of course, you could also have a menu with Test1, Test2 and "..." entry which uses {dlgopen}, but I figure it's much nicer to find the container via the lister than via a comparatively clunky File Open dialog.
@leo: I have mounted the containers with filetypes (context menu), problem is if a container is already mounted to a driveletter. But you give me an idea: Open a dialogue with some free driveletters when mounting via contextmenu. That's seems to be the best solution without lots of mouseclicks. Thanks!
Offtopic: Because English is not my native language it would be nice to edit posts again. Often I find some misspelling, which I can't correct. I know why edit is turned off, but maybe "senior"-users should have this option back again.