[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] SetTmp() question
In message <3e40427156.Dentrassis@mail>
Gavin Crawford <gav@xxxxxxxxxxxxxx> wrote:
> Does SetTmp() set a variable for the contents of of the selected
> block?
No, it doesn't.
> I can see that it sets StrongED$Tmp_MarkWord which is the word that
> was clicked on, but I want to pass the selected text to Filer_OpenDir
> and/or Filer_Run command.
One way of doing this is to use a ClickList as it allows you to define a
search expression to match the filename. The matched text will be placed
in StrongED$Tmp_MarkWord so that it can be used in functions.
Here are the expressions that I have in use here:
Search
FileSys "ADFS::" | "RAM::" | "SCSI::" | "SDFS::"
FileName (FileSys | "Boot:") {~(Ctrl|White) Any}+
End
ClickList Select2
FileName Run("Filer_Run <StrongED$Tmp_MarkWord>")
End
The FileSys expression can be extended with further filing systems as
required.
You can prefix 'Select2' with modifier keys if desired, eg cs-Select2
will open a directory on a doubleclick with both Ctrl and Shift down.
Note that the filename doesn't have to be selected first.
Cheers,
Fred.
--
StrongED Developer
http://www.stronged.iconbar.com/
--=20
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives at http://www.Torrens.org/RO/StrongED/index.html