RE: Re: drop down box or something like it.

"Hale, Paul" <Paul.Hale-uv/[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <23DBD872E5D0B44E8296E93447E0F607050489BD@01ohday01n00005.ad.bls.com>
> -----Original Message-----
> From: news [mailto:[email protected]] On Behalf Of Brian Wolven
> Sent: Friday, June 08, 2007 11:37 AM
> To: litestep-HzvBz7w1J3cIFlVeWT/[email protected]
> Subject: [Litestep] Re: drop down box or something like it.
> 
> Hale, Paul wrote:
> > SNIP
> >>>> *Popup "Select color scheme" !new !popupSchemes
> >>>>    *Popup "Select color scheme" 
> >>>> !popupDynamicACtionFolder:!apply_colors:"$SchemesDir$"
> >>>> *Popup ~New
> >>>>
> > SNIP
> >>> Wow... That is perfect actually. Okay, now how about saving the 
> >>> filename as an evar?
> > SNIP
> >> That's why I defined bangs like these:
> >>
> >> *alias !saveSetting !execute [!setEvar %1 %2][!xtextSaveEvar 
> >> @$settingsFile$@ @%1@ @%2@] *alias !stripPath !execute 
> [!xtextReplace 
> >> @$settingsFile$@ @(^%1 \=)(.*\\)(.*\..*\=)_@ @\1\3@] *alias 
> >> !stripExtn !execute [!xtextReplace @$settingsFile$@ @(^%1 
> >> \=.*)(\..*\=)_@ @\1\=@]
> > 
> > OK, bear with me as I am slow. As I understand it, the popupaction 
> > uses the data after the " : " as the arguments, so when looking at 
> > your Alias's I am trying to figure where the file path is 
> represented. 
> > I don't understand the %1 %2. Also, in this example, is 
> $settingFile$ 
> > the themevars? If so, where is the Var that it is trying to 
> replace? I 
> > am used to the
> > 
> > !xTextSaveEvar @file_the_Var_is_in@ @var_to_be_changed@ "new_value"
> > 
> > format. In my head, I am trying to figure out how your configs work.
> > Sorry if I sound dumb on this, I just don't get it yet.
> 
> !savesetting does two things:
> 
> 1) Sets the evar with !setEvar so that it is replaced 
> "immediately", and
> 2) Saves it to the settings file so that it's updated for 
> future use (!recycle, reboot, restart LS, etc.)
> 
> The %1 and %2 are just the two arguments to the bang; the 
> first is the setting/evar name, the second is the 
> setting/evar value. So
> 
>    !savesetting "username" "BigDaddy"
> 
> would place this line in the settings file after defining the evar:
> 
> username "BigDaddy"
> 

Right here is where it loses me. Where is it be said "username"? I see
how the %2 represents the filepath, I just don't see how this command
knows the Var I am defining.

Am I saying this correctly?

> Since the popup action feeds us the full path name (and that is not
> configurable) I first save the setting with the full path and 
> extension, and then "strip" the folder and/or extension stuff 
> off, as needed. 
> !stripPath and !stripExtn are called with only the 
> setting/evar name (e.g., username), and the regEx (regular 
> expression) takes care of the rest.

------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may
contain confidential, proprietary and or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this email in error, please contact the sender
and delete the material from all computers.

This electronic mail message was sent from L. M. Berry & Company or Berry Network, Inc. Our primary business
address is 3170 Kettering Blvd., Dayton, OH 45439. This message may constitute a commercial solicitation or
advertisement as defined by the CAN-SPAM act of 2003. If you do not wish to receive future commercial
electronic mail solicitations or advertisements from L. M. Berry & Company or Berry Network, Inc.,
please send a request to [email protected]
==============================================================================


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.