Loading ...
Sorry, an error occurred while loading the content.

Boolean search capabilities

Expand Messages
  • rdeckard1ca
    Has anyone ever developed a script for carrying out a Booleon search on a file? I m trying to develop an app that would let me record a filename, a link to the
    Message 1 of 18 , Dec 9, 2001
    • 0 Attachment
      Has anyone ever developed a script for carrying out a Booleon search on a file?
      I'm trying to develop an app that would let me record a filename, a link to the file and a description of the file. I would like to search these descriptions using "or" or "and" options and then generate a list of Outline headings that match the criteria.
      Suggestions?
    • Jody
      Hi rdeckard1ca, ... I have an example Replace Library that has examples of using the Clipbook doing different S&R things. I did one on the lines of what you
      Message 2 of 18 , Dec 9, 2001
      • 0 Attachment
        Hi rdeckard1ca,

        >Has anyone ever developed a script for carrying out a Booleon search on a file?
        >I'm trying to develop an app that would let me record a filename, a link to the file and a description of the file. I would like to search these descriptions using "or" or "and" options and then generate a list of Outline headings that match the criteria.

        I have an example Replace Library that has examples of using the
        Clipbook doing different S&R things. I did one on the lines of
        what you want,but did not pursue it too much as I found it was
        too slow and not sure if it was altogether perfect. You might
        try tweaking it to do what you need.

        And, Or, but Not...
        NOT in...

        http://www.notetab.net/html/library.htm
        http://www.notetab.net/zip/replace.zip

        Happy Clip'n!
        Jody

        http://www.notetab.net

        Subscribe, UnSubscribe, Options
        mailto:Ntb-Clips-Subscribe@yahoogroups.com
        mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
        http://groups.yahoo.com/group/ntb-clips
      • Lotta
        Hi, I wanted to write a Clip that would let me toggle between a couple of alternatives for the relative path Notetab so kindly puts in for me when I use
        Message 3 of 18 , Dec 9, 2001
        • 0 Attachment
          Hi,

          I wanted to write a Clip that would let me toggle between a couple of
          alternatives for the relative path Notetab so kindly puts in for me when I
          use Document | Insert HTML Link/Image.

          These are two of the lines I want to switch between in notepro.ini:

          <img src="^*" width="^1" height="^2" alt="">

          ^*

          If I try to get the output from $GetValue("Options:LinkImgTag")$ to check
          which line is currently in use I get the interpreted value, i.e. the
          windows path to the focused file, instead of "*^". I cunningly got around
          that by counting the characters in the returned string,
          ^$StrSize("^$GetValue("Options:LinkImgTag")$")$, which works.

          But, how do I write the new string to the ini file? Everything I try puts
          the interpreted value in. If I was writing it to an ordinary document I
          would split "^*" up and use two commands to insert the little beggars but
          now I have to use the ^!SaveValue [Section:]Key=Value.

          Nothing I've tried works. What's the trick here? HELP! Please.


          Lotta
        • Jody
          Hi Lotta, I did not test this, and didn t really try to figure out what you are doing, but see if you can get this to work: ^!SetCode %VariableName%=Value
          Message 4 of 18 , Dec 9, 2001
          • 0 Attachment
            Hi Lotta,

            I did not test this, and didn't really try to figure out what you
            are doing, but see if you can get this to work:

            ^!SetCode %VariableName%=Value (added in v4.84)
            Similar to the ^!Set command, but assigns the value without
            interpreting ^?{} prompts and Clip tokens like ^P, ^T, ^&, ^*,
            etc. However, variables and functions used in the assigned value
            are evaluated normally. You cannot set multiple variables with
            this command.

            Sometimes you get lucky using a predefined variable:

            ^%CARET% = caret (^) (added in v4.6)

            >I wanted to write a Clip that would let me toggle between a couple of
            >alternatives for the relative path Notetab so kindly puts in for me when I
            >use Document | Insert HTML Link/Image.
            >
            >These are two of the lines I want to switch between in notepro.ini:
            >
            ><img src="^*" width="^1" height="^2" alt="">
            >
            >^*
            >
            >If I try to get the output from $GetValue("Options:LinkImgTag")$ to check
            >which line is currently in use I get the interpreted value, i.e. the
            >windows path to the focused file, instead of "*^". I cunningly got around
            >that by counting the characters in the returned string,
            >^$StrSize("^$GetValue("Options:LinkImgTag")$")$, which works.
            >
            >But, how do I write the new string to the ini file? Everything I try puts
            >the interpreted value in. If I was writing it to an ordinary document I
            >would split "^*" up and use two commands to insert the little beggars but
            >now I have to use the ^!SaveValue [Section:]Key=Value.
            >
            >Nothing I've tried works. What's the trick here? HELP! Please.


            Happy Clip'n!
            Jody

            http://www.notetab.net

            Subscribe, UnSubscribe, Options
            mailto:Ntb-Clips-Subscribe@yahoogroups.com
            mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
            http://groups.yahoo.com/group/ntb-clips
          • john041650
            ... of ... when I ... Hi Lotta, I know I have to missing something obvious here, but it seems to me that you could create various simple clips that would point
            Message 5 of 18 , Dec 9, 2001
            • 0 Attachment
              --- In ntb-clips@y..., Lotta <loro@h...> wrote:
              > Hi,
              >
              > I wanted to write a Clip that would let me toggle between a couple
              of
              > alternatives for the relative path Notetab so kindly puts in for me
              when I
              > use Document | Insert HTML Link/Image.



              Hi Lotta,

              I know I have to missing something obvious here, but it seems to me
              that you could create various simple clips that would point to
              specifics paths when you need them.. For example, here is a line
              from a clip that always points to a default directory for some of my
              image files, it works just fine for me.. Yet when I want to, I can
              use the default DOCUMENT/INSERT HTML LINK/IMAGE menu command for
              other "normal" insertions...

              ^!Set %FileChoice%="^?{(T=T;F="Image Files|*.gif;*.jpg;*.jpeg")Click
              button on right && select image file=C:\mine-storage\Random-Photos\}"

              (The above is one long line)
              So what am I missing here? Why do you need to alter the ini file?

              John
            • Lotta
              Jody, ... I m just trying to change an Option with a clip. ... That s where I started. The above works only if one can use it in combination with ^!InsertCode.
              Message 6 of 18 , Dec 9, 2001
              • 0 Attachment
                Jody,

                >I did not test this, and didn't really try to figure out what you
                >are doing,

                I'm just trying to change an Option with a clip.

                >^!SetCode %VariableName%=Value (added in v4.84)
                >^%CARET% = caret (^) (added in v4.6)

                That's where I started. The above works only if one can use it in
                combination with ^!InsertCode. At least that's the only way I get it to work.

                ^!SetCode %blah%=^%caret%*
                ^!InsertCode ^%blah%
                WORKS

                ^!SetCode %blah%=^%caret%*
                ^!InsertText ^%blah%
                WORKS NOT and prints the interpreted value of "^*".

                As far as I understand I have to use ^!SaveValue [Section:]Key=Value to get
                it into the ini file and that doesn't work. Same thing happens, "^*" gets
                interpreted. I paste the short version below. I think you get more out of
                that than of my explanations. Hope I pasted it together right from all my
                snips. Oh, quoting the strings doesn't help either.


                Lotta

                -------------------------------------------------
                ^!ClearVariable %html%
                ^!ClearVariable %css%

                ^!SetCode %html%=<img src="^%caret%*" width="^%caret%1" height="^%caret%2"
                alt="">
                ^!SetCode %css%=^%caret%*

                ^!If ^$StrSize("^$GetValue("Options:LinkImgTag")$")$ = 2 html else css

                :css
                ^!Continue Switch to CSS mode?
                ^!ClearValue Options:LinkImgTag
                ^!SaveValue Options:LinkImgTag=^%css%
                ^!ProgIniLoad
                ^!Goto end

                :html
                ^!Continue Switch to HTML mode?
                ^!ClearValue Options:LinkImgTag
                ^!SaveValue Options:LinkImgTag=^%html%
                ^!ProgIniLoad
                ^!Goto end
                ------------------------------
              • Lotta
                Hello John, ... I want to make a clip that change the way an image tag or link is inserted in an HTML file, so I can toggle between two or more modes . It s
                Message 7 of 18 , Dec 9, 2001
                • 0 Attachment
                  Hello John,

                  >So what am I missing here? Why do you need to alter the ini file?

                  I want to make a clip that change the way an image tag or link is inserted
                  in an HTML file, so I can toggle between two or more "modes". It's the
                  stuff found in Options on the Internet tab labeled "Href tag" and "Img tag".

                  The problem is that the strings there contain "^*" which to NTB means the
                  path to the focused file. I don't find away to escape those characters, so
                  my clip writes the path to the focused file in notepro.ini instead of the
                  characters "^*". Well, Jody will soon tell me the obvious. ;)

                  L.
                • Jody
                  Hi Lotta, ... I m pretty much brain dead. You might need to open the ini file, searching for the section, then use InsertCode ^*. If you turn screen update
                  Message 8 of 18 , Dec 9, 2001
                  • 0 Attachment
                    Hi Lotta,

                    > >^!SetCode %VariableName%=Value (added in v4.84)
                    > >^%CARET% = caret (^) (added in v4.6)
                    >
                    >That's where I started. The above works only if one can use it in
                    >combination with ^!InsertCode. At least that's the only way I get it to work.
                    >
                    >^!SetCode %blah%=^%caret%*
                    >^!InsertCode ^%blah%
                    >WORKS
                    >
                    >^!SetCode %blah%=^%caret%*
                    >^!InsertText ^%blah%
                    >WORKS NOT and prints the interpreted value of "^*".
                    >
                    >As far as I understand I have to use ^!SaveValue [Section:]Key=Value to get
                    >it into the ini file and that doesn't work. Same thing happens, "^*" gets
                    >interpreted. I paste the short version below. I think you get more out of
                    >that than of my explanations. Hope I pasted it together right from all my
                    >snips. Oh, quoting the strings doesn't help either.

                    I'm pretty much brain dead. You might need to open the ini file, searching for the section, then use InsertCode ^*. If you turn screen update off, it will appear that you never had the file opened. nite...

                    >-------------------------------------------------
                    >^!ClearVariable %html%
                    >^!ClearVariable %css%
                    >
                    >^!SetCode %html%=<img src="^%caret%*" width="^%caret%1" height="^%caret%2"
                    >alt="">
                    >^!SetCode %css%=^%caret%*
                    >
                    >^!If ^$StrSize("^$GetValue("Options:LinkImgTag")$")$ = 2 html else css
                    >
                    >:css
                    >^!Continue Switch to CSS mode?

                    You do not need to clear the value since you will be chaging.

                    >^!ClearValue Options:LinkImgTag
                    >^!SaveValue Options:LinkImgTag=^%css%
                    >^!ProgIniLoad
                    >^!Goto end
                    >
                    >:html
                    >^!Continue Switch to HTML mode?
                    >^!ClearValue Options:LinkImgTag
                    >^!SaveValue Options:LinkImgTag=^%html%
                    >^!ProgIniLoad
                    >^!Goto end


                    c ya,
                    Jody

                    The whole world doth err save you
                    and me and even thou doest err some!

                    http://www.purewords.org/sojourner
                    http://www.purewords.org/kjb1611
                    http://www.notetab.net
                  • Alan Williams
                    Hi All I hope someone can help with this problem. When calling the disk search dialogue from a clip via eg something like this: ^!Set %OpenDialog%=Ctrl+D ;long
                    Message 9 of 18 , Dec 10, 2001
                    • 0 Attachment
                      Hi All

                      I hope someone can help with this problem. When calling the disk
                      search dialogue from a clip via eg something like this:

                      ^!Set %OpenDialog%=Ctrl+D
                      ;long line
                      ^!Set %changeSettings%=#^%oldpath%# SHIFT+TAB &500 RIGHT TAB #^%newpath%# TAB #^%p_LocalFolder%*.htm# TAB TAB SPACEBAR
                      ;end longline
                      ^!Keyboard ^%OpenDialog% ^%ChangeSettings%

                      By useing the SHIFT+TAB and spacebar etc one can toggle the checkbox
                      options.

                      However, if the Search Disk dialogue is called repeatedly in a loop,
                      if it was unchecked it is checked, it checked, it is unchecked.

                      I would like to be able to determine the status of the subdir checkbox
                      and via the clip, toggle it to the required state with certainty.

                      Any ideas?

                      Best regards,
                      Alan

                      mailto:alwilli@...
                    • Alan C.
                      Hi Lotta and everyone, ... But of course there s only one of those lines in the ini at any given time. In addition to Jody s last reply: I wonder that useage
                      Message 10 of 18 , Dec 10, 2001
                      • 0 Attachment
                        Hi Lotta and everyone,

                        >These are two of the lines I want to switch between in notepro.ini:
                        >
                        ><img src="^*" width="^1" height="^2" alt="">
                        >
                        >^*

                        But of course there's only one of those lines in the ini at any given time.

                        In addition to Jody's last reply: I wonder that useage of a 2nd ini file
                        could perhaps possible solution.

                        Have your top line in NotePro.ini and have your 2nd line above in
                        yourname.ini

                        Just load yourname.ini when need that option. Revert to NotePro.ini when
                        need the other option.
                        -----------------

                        I dunno how to or if can escape so as to savevalue directly to the ini
                        --------------

                        I haven't tried it but I wonder How about copy ^* to clipboard then use

                        savevalue ini $getclipboard

                        Regards. Alan.
                      • Lotta
                        Hello Alan, ... Yup. I settled for that as the least messy option. It was just that I thought there would be a way to get it into the real ini. There usually
                        Message 11 of 18 , Dec 11, 2001
                        • 0 Attachment
                          Hello Alan,

                          > I wonder that useage of a 2nd ini file
                          >could perhaps possible solution.

                          Yup. I settled for that as the least messy option. It was just that I
                          thought there would be a way to get it into the real ini. There usually is
                          a trick that makes things work.

                          Lotta
                        • Jody
                          Hi Alan, ... I played with that myself once and gave up once I saw *I* could not find a way to know the state of each checkbox since it toggles the state like
                          Message 12 of 18 , Dec 20, 2001
                          • 0 Attachment
                            Hi Alan,

                            >However, if the Search Disk dialogue is called repeatedly in a
                            >loop, if it was unchecked it is checked, it checked, it is
                            >unchecked.
                            >
                            >I would like to be able to determine the status of the subdir
                            >checkbox and via the clip, toggle it to the required state with
                            >certainty.

                            I played with that myself once and gave up once I saw *I* could not find a way to know the state of each checkbox since it toggles the state like you said. Perhaps somebody else has found a way.

                            Happy Clip'n!
                            Jody

                            http://www.notetab.net

                            Subscribe, UnSubscribe, Options
                            mailto:Ntb-Clips-Subscribe@yahoogroups.com
                            mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
                            http://groups.yahoo.com/group/ntb-clips
                          • Alan C.
                            Hi Alan, Jody, Everyone, ... I had been experimenting. I thought that since there is a value for that option in the NotePro.ini then the following in a clip
                            Message 13 of 18 , Dec 21, 2001
                            • 0 Attachment
                              Hi Alan, Jody, Everyone,

                              >I would like to be able to determine the status of the subdir checkbox
                              >and via the clip, toggle it to the required state with certainty.

                              I had been experimenting. I thought that since there is a value for that
                              option in the NotePro.ini then the following in a clip

                              ^!SetIniFile
                              ^!ProgIniSave
                              ^!SaveValue SearchFiles:SearchSubDir=0
                              ^!ProgIniLoad

                              should been able to change the value of that key from a 1 to a 0

                              But when I ran the clip it didn't change the value. However, with NoteTab
                              closed, I opened NotePro.ini in Microsoft notepad and I manually edited
                              that value, did a file save and closed notepad. When re open NoteTab the
                              sub directory option thus now has been toggled. I was able in that manner
                              to manually edit NotePro.ini and toggle the subdir option to be either in
                              the on or off (Regards the value: a 1 means on and a 0 means off)

                              If, in a clip, someone can get the value to change then that should do it
                              for you.

                              Or, an alternative that should work would be to use two ini files. Make a
                              copy of NotePro.ini then rename that copy to yourname.ini and then edit the
                              one value then put yourname.ini in Ntab's library folder

                              ; for to use settings/options from yourname.ini
                              ^!SetIniFile yourname

                              ; for to use settings/options from NotePro.ini
                              ^!SetIniFile

                              I did not test the two ini method. But these herein is closest I see so as
                              can arrive at what you want. You might pull it off. I've learned to not
                              say no until I've tried it (in a multiplicity of ways) with NoteTab;
                              NoteTab amazes me.

                              Regards. Alan.
                            • hpaulissen
                              Alan W., Alan C., Jody and the rest, I had the same idea as Alan and checked the values of the DiskSearch box in the ini file. The problem however was that the
                              Message 14 of 18 , Dec 21, 2001
                              • 0 Attachment
                                Alan W., Alan C., Jody and the rest,

                                I had the same idea as Alan and checked the values of the DiskSearch
                                box in the ini file. The problem however was that the ini file is
                                loaded at startup, if you have set all values to OFF/0 you are pretty
                                much in control. But whilst you are changing the values in the
                                dialog, these are not written to the ini-file (I think); this
                                happens - I presume - only when you quit the program. (Try to change
                                the values and open the ini-file to see what I mean).

                                Just a shot in the dark, but worth investigating... What you could do
                                as an alternative is to set all values to zero and in your clips you
                                use/leave from these initital values. When you change a certain value
                                (say Reg Expr.) you could record that change in a variable, which
                                then holds the ON/OFF value for that specific option.

                                When you call the clip a second time, you'll only have to check all
                                the variables to identify the state of the options. Alan W.: if you
                                have the courage to continue: keep us posted!

                                BTW, you can actually use keystroke combinations instead of CTRL+TAB.
                                Puts you even more in control (ALT+W for Whole Words, ALT+X for
                                Regular Expressions etc.).

                                Hugo
                              • hpaulissen
                                Alan W., Alan C., Jody and the rest, Well, this might be the solution... Food for during the holidays... The following clip sets all values in the ini-file to
                                Message 15 of 18 , Dec 21, 2001
                                • 0 Attachment
                                  Alan W., Alan C., Jody and the rest,


                                  Well, this might be the solution... Food for during the holidays...

                                  The following clip sets all values in the ini-file to 0. Apparently
                                  you don't need ProgINISave here... I never fiddled with INI files,
                                  but this opens up new territories. Thank you Alan for lighting the
                                  bulb.

                                  Reset all SearchDisk options
                                  ----------------------------

                                  ^!SaveValue SearchFiles:SearchSubDir=0
                                  ^!SaveValue SearchFiles:Backup=0
                                  ^!SaveValue SearchFiles:Confirm=0
                                  ^!SaveValue SearchFiles:MatchCase=0
                                  ^!SaveValue SearchFiles:WholeWord=0
                                  ^!SaveValue SearchFiles:RegExp=0
                                  ^!SaveValue SearchFiles:SearchHidden=0
                                  ^!INFO SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$^PBackup:
                                  ^$GetValue(SearchFiles:Backup)$^PConfirm: ^$GetValue
                                  (SearchFiles:Confirm)$^PMatchCase: ^$GetValue(SearchFiles:MatchCase)
                                  $^PWholeWord: ^$GetValue(SearchFiles:WholeWord)$^PRegExp: ^$GetValue
                                  (SearchFiles:RegExp)$^PSearchHidden: ^$GetValue
                                  (SearchFiles:SearchHidden)$
                                  ----------------------------


                                  The following clip is an example of displaying the initial and the
                                  changed settings, using "^!Keyboard CTRL+D &100 ALT+H etc". The trick
                                  is to use ProgINISave immediately after the changing of the state. If
                                  you then check for the INI values, you will get the new ones.


                                  SearchDisk Options
                                  ------------------

                                  ^!Select ALL
                                  ^%NL%SearchDisk Options when clip started
                                  ----------------------------------------
                                  ALT+S | SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$
                                  ALT+O | Confirm: ^$GetValue(SearchFiles:Confirm)$
                                  ALT+C | MatchCase: ^$GetValue(SearchFiles:MatchCase)$
                                  ALT+W | WholeWord: ^$GetValue(SearchFiles:WholeWord)$ (Not with
                                  RegExp)
                                  ALT+X | RegExp: ^$GetValue(SearchFiles:RegExp)$
                                  ALT+H | SearchHidden: ^$GetValue(SearchFiles:SearchHidden)$
                                  ALT+K | Backup: ^$GetValue(SearchFiles:Backup)$ (Replace Only)
                                  ----------------------------------------
                                  ^!Save
                                  ^!Keyboard CTRL+D &100 ALT+H &10 ALT+X &10 ALT+S &10 ALT+O &10 ALT+C
                                  &10 ESC
                                  ^!ProgIniSave
                                  ^%NL%SearchDisk Options when clip ended
                                  ----------------------------------------
                                  ALT+S | SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$
                                  ALT+O | Confirm: ^$GetValue(SearchFiles:Confirm)$
                                  ALT+C | MatchCase: ^$GetValue(SearchFiles:MatchCase)$
                                  ALT+W | WholeWord: ^$GetValue(SearchFiles:WholeWord)$ (Not with
                                  RegExp)
                                  ALT+X | RegExp: ^$GetValue(SearchFiles:RegExp)$
                                  ALT+H | SearchHidden: ^$GetValue(SearchFiles:SearchHidden)$
                                  ALT+K | Backup: ^$GetValue(SearchFiles:Backup)$ (Replace Only)
                                  ========================================


                                  Note that there may be some wrapped lines, you know where to find
                                  them...


                                  Happy Holidays

                                  Hugo
                                • Alan Williams
                                  Hi Hugo, Alan C., Jody Thanks for your responses, I believe you have put me on the right track - the proginisave track. ... Best regards, Alan
                                  Message 16 of 18 , Dec 21, 2001
                                  • 0 Attachment
                                    Hi Hugo, Alan C., Jody

                                    Thanks for your responses, I believe you have put me on the right
                                    track - the proginisave track.

                                    Friday, 21 December, 2001, you wrote:

                                    > Alan W., Alan C., Jody and the rest,


                                    > Well, this might be the solution... Food for during the holidays...

                                    > The following clip sets all values in the ini-file to 0. Apparently
                                    > you don't need ProgINISave here... I never fiddled with INI files,
                                    > but this opens up new territories. Thank you Alan for lighting the
                                    > bulb.

                                    > Reset all SearchDisk options
                                    > ----------------------------

                                    > ^!SaveValue SearchFiles:SearchSubDir=0
                                    > ^!SaveValue SearchFiles:Backup=0
                                    > ^!SaveValue SearchFiles:Confirm=0
                                    > ^!SaveValue SearchFiles:MatchCase=0
                                    > ^!SaveValue SearchFiles:WholeWord=0
                                    > ^!SaveValue SearchFiles:RegExp=0
                                    > ^!SaveValue SearchFiles:SearchHidden=0
                                    > ^!INFO SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$^PBackup:
                                    > ^$GetValue(SearchFiles:Backup)$^PConfirm: ^$GetValue
                                    > (SearchFiles:Confirm)$^PMatchCase: ^$GetValue(SearchFiles:MatchCase)
                                    > $^PWholeWord: ^$GetValue(SearchFiles:WholeWord)$^PRegExp: ^$GetValue
                                    > (SearchFiles:RegExp)$^PSearchHidden: ^$GetValue
                                    > (SearchFiles:SearchHidden)$
                                    > ----------------------------


                                    > The following clip is an example of displaying the initial and the
                                    > changed settings, using "^!Keyboard CTRL+D &100 ALT+H etc". The trick
                                    > is to use ProgINISave immediately after the changing of the state. If
                                    > you then check for the INI values, you will get the new ones.


                                    > SearchDisk Options
                                    > ------------------

                                    > ^!Select ALL
                                    > ^%NL%SearchDisk Options when clip started
                                    > ----------------------------------------
                                    > ALT+S | SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$
                                    > ALT+O | Confirm: ^$GetValue(SearchFiles:Confirm)$
                                    > ALT+C | MatchCase: ^$GetValue(SearchFiles:MatchCase)$
                                    > ALT+W | WholeWord: ^$GetValue(SearchFiles:WholeWord)$ (Not with
                                    > RegExp)
                                    > ALT+X | RegExp: ^$GetValue(SearchFiles:RegExp)$
                                    > ALT+H | SearchHidden: ^$GetValue(SearchFiles:SearchHidden)$
                                    > ALT+K | Backup: ^$GetValue(SearchFiles:Backup)$ (Replace Only)
                                    > ----------------------------------------
                                    > ^!Save
                                    > ^!Keyboard CTRL+D &100 ALT+H &10 ALT+X &10 ALT+S &10 ALT+O &10 ALT+C
                                    > &10 ESC
                                    > ^!ProgIniSave
                                    > ^%NL%SearchDisk Options when clip ended
                                    > ----------------------------------------
                                    > ALT+S | SearchSubDir: ^$GetValue(SearchFiles:SearchSubDir)$
                                    > ALT+O | Confirm: ^$GetValue(SearchFiles:Confirm)$
                                    > ALT+C | MatchCase: ^$GetValue(SearchFiles:MatchCase)$
                                    > ALT+W | WholeWord: ^$GetValue(SearchFiles:WholeWord)$ (Not with
                                    > RegExp)
                                    > ALT+X | RegExp: ^$GetValue(SearchFiles:RegExp)$
                                    > ALT+H | SearchHidden: ^$GetValue(SearchFiles:SearchHidden)$
                                    > ALT+K | Backup: ^$GetValue(SearchFiles:Backup)$ (Replace Only)
                                    > ========================================


                                    > Note that there may be some wrapped lines, you know where to find
                                    > them...


                                    > Happy Holidays

                                    > Hugo






                                    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




                                    Best regards,
                                    Alan

                                    mailto:alwilli@...
                                  • john041650
                                    Many thanks to each of you who have responded to this thread, it has culminated in an early Christmas present for me.. :) For quite awhile now I ve wanted an
                                    Message 17 of 18 , Dec 21, 2001
                                    • 0 Attachment
                                      Many thanks to each of you who have responded to this thread, it has culminated in an early Christmas present for me.. :)

                                      For quite awhile now I've wanted an easy way to capture the current setting of a menu command.. For example, is the Document/Word Wrap option turned on or off? And then to change it if necessary. While the clip below does not directly relate to what Alan W. was looking for, the idea to create it came from his question..

                                      As a general rule I like to turn off the Word Wrap option whenever I turn the Line Numbers on. The clip below does that for me now..

                                      Happy Holidays all,
                                      John :)


                                      H="Line Numbers On/Off"
                                      ; LAST MODIFIED: Friday, December 21, 2001
                                      ; IF LINE NUMBERS ARE OFF, TURN THEM ON
                                      ; AND TURN THE WORD WRAP OFF (AND VICE VERSA)

                                      ^!ProgIniSave
                                      ^!If "^$GetValue("Options:ShowLineRuler")$" = "1" Off ELSE On

                                      :Off
                                      ^!SaveValue Options:ShowLineRuler=0
                                      ^!SaveValue Options:WordWrap=1
                                      ^!ProgIniLoad
                                      ^!GoTo End

                                      :On
                                      ^!SaveValue Options:ShowLineRuler=1
                                      ^!SaveValue Options:WordWrap=0
                                      ^!ProgIniLoad
                                    • Jody
                                      Hi Alan, John, Hugo, I m glad you guys figured it out. I obviously was impatient when I tried or didn t need it that bad so I gave up w/o pursuing a solution.
                                      Message 18 of 18 , Dec 21, 2001
                                      • 0 Attachment
                                        Hi Alan, John, Hugo,

                                        I'm glad you guys figured it out. I obviously was impatient when
                                        I tried or didn't need it that bad so I gave up w/o pursuing a
                                        solution. Silly me did not even think about changing the ini
                                        file. ;) Happy holidays to you all.

                                        >> I would like to be able to determine the status of the subdir
                                        >> checkbox and via the clip, toggle it to the required state with
                                        >> certainty.
                                        >
                                        >I had been experimenting. I thought that since there is a value
                                        >for that option in the NotePro.ini


                                        Happy Clip'n!
                                        Jody

                                        ClipWriter's home page (an aid for writing Clips):
                                        http://ptools.home.att.net/ClipWriter/cw.htm

                                        Clip List Holiday Special order page:
                                        http://www.regsoft.net/purchase.php3?productid=32529&pc=G25v1

                                        Subscribe, UnSubscribe, Options
                                        http://groups.yahoo.com/group/ntb-clips
                                      Your message has been successfully submitted and would be delivered to recipients shortly.