--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
>
> Sheri" wrote:
> 
> > Not sure I understand the question.
> > If the edit box entry is a file name, you can "do" the entry:
> > 
> > do(cl.GetCtrlValue(cl.getLastBar(),cl.GetLastPressed(cl.GetLastBar())))
> 
> First let me answer that one.
> I have a test list called "edit_"
> name: *control edit left autohscroll autofile clientedge
> 
> before you replied, I had the following in the command field:
> exec.explorer("*")
> 
> so, if I typed "c:\windows\" it'd open that folder but wouldn't do nothing if 
> I typed "c:\windows\regedit.exe" hence my question...
> But I have it working now with:
> 
> do(cl.GetCtrlValue("edit_","exec"))
> 
> I had read the help file but that didn't helped me to understand that I just 
> needed the "do" before those.
> Thanks!
> 
> 
> 
> Now, my other question:
> In the case above, I'm using autocomplete to launch something but what I want 
> to do, is have an edit button act as a run box, so if I use autocomplete it 
> execs whatever is in the field and if I type PowerPro commands or alias 
> defined in the PATH it execs those too.
> 
> To resume:
> . process autocomplete
> . process PowerPro commands
> . process alias PATH
> 
> That's why I asked if it could act as the PowerPro Tiny Run command line.
> If I use: 
> exec.commandline(cl.getctrlvalue("edit_","exec"))
> nothing happens.
>

If you want to do it in a bar, you need some logic to control what happens. if 
file.isfolder(thevalue) do your explorer option, else do(thevalue). I don't 
know what you mean by alias path.

exec.commandline opens its own window. To execute your command from that window 
you'd need to wait for it to appear and send or paste thevalue's text to it. 
Possibly it would execute if you sent the window send an {enter} key.

Regards,
Sheri

Reply via email to