Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7

Thread: File Search

  1. #1
    Join Date
    Dec 2001
    Posts
    3

    Grin File Search

    I have alot of different cd's with differnt songs on them and I am forever forgetting which cd has a paticular song on it and so I was wanting to make a button that when clicked would open up a search box where I would type the name of a song ex. song.mp3 and press ok and then AMS'S built in search function would take over and search my cd for song.mp3 and if it found it a message would popup saying song.mp3 was located and if it not a different message would popup saying it was not found. Could anyone help me out on how to achive this and thanks in advance for any replies.

  2. #2
    Join Date
    Oct 2001
    Location
    Knoxville, IA, USA
    Posts
    113

    Re: File Search

    I don't think it's for use as a search engine. It only allows you to search for a specific file on the persons hard drive. So, say, if a certain file is there, then you don't need to install another program for example. I might be mistaken, but I don't think so. When I tested this on a build of mine to see what would happen, it asked me to define the file name parameter.

  3. #3
    Join Date
    Dec 2001
    Posts
    3

    Re: File Search

    Well I have managed to do it somewhat but there is some things that I could not figure out. Here is what I did.

    1. Created some text named "search" and on the actions tab for the text I put in a GetInfo dialog box with these params

    Variable name: %songvar%

    Default: Left blank

    Window caption: Search

    Window message: Type the name of the song u are looking for in the box below

    browse type: none

    boolean: none

    OS: all of them

    Language: Neutral

    2. Under that action I put a search for file action with these params

    variable name: %SearchVar%

    Default: Left blank

    Message: Searching for file...

    File Name: %songvar%

    Priorty Paths: Left Blank

    Look In: fixed drives

    Store this: full path

    Browse if not found: checked

    Boolean: none

    OS: all of them

    Language: Neutral

    Now this meathod works great except if you press cancel on the search/GetInfo box it does a search anyway so I thought I would need to set some kind of boolean condition that if cancel was pressed to just abort the search and here is where I am having my problem becuase when I add anything into the boolean area the search/GetInfo box is bypassed and it just goes to the file not found would u like to manuallly borwse box. I hope that makes sense.

    So what I wanting to know is what would I need to do in order for it not to search when I press cancel. A boolean expression does not seem to work so would I need to use a custom verb or something else like this ? and if so how ?

    Thanks again for any replies.

  4. #4
    Join Date
    Oct 2001
    Location
    Knoxville, IA, USA
    Posts
    113

    Re: File Search

    Well, I did figure out something I think. If you add the Boolean in the Search for file section to read:

    %songvar% <> (leave B blank)

    It will not run unless there is some text in the Get info dialog. Unfortunately (and maybe you've figured this out already), I couldn't figure out how to get it to do what I want to with the file once it found it. If I try browse, it thinks it should run the file. If I try Play MP3, it gives me an error that it can't find %Test2% (the name I used for %SearchVar% while testing this) during the build process. But, at least this fixes the problem you asked about. I'll leave it to you to figure out what to do with the file once they find it. http://www.indigorose.com/ubb/images/icons/smile.gif Good luck.

  5. #5
    Join Date
    Oct 2001
    Location
    Knoxville, IA, USA
    Posts
    113

    Re: File Search

    I figured it out. I made it a Play Multimedia function. Works like a charm. http://www.indigorose.com/ubb/images/icons/laugh.gif

  6. #6
    Join Date
    Dec 2001
    Posts
    3

    Re: File Search

    That is how i had it do it if it found a file and thx for the help and hope this does you and anyone else some good.

  7. #7
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943

    Re: File Search

    Hi,

    Instead of using the "Play MP3" action you can use the "Play MP3 Reference" action. The "Play MP3" action will build the MP3 file into your DATA directory, but the "Play MP3 Reference" action will play a file located on your CD-ROM, like most file actions. So using the “Play MP3 Reference” action, you will be able to use variables in your target.

    Also note: We recommend people use an "Open Document" action rather then the "Play Multimedia" action because some applications do not support the PLAY shell verb.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts