At work, our assets are stored in about 6 different locations. We have to search for them all the time, not knowing which location to start looking in first.
If I ran a normal search on all these drives, that would probably work, but there are many advantages to doing it another way.
So...
I want to make a button that lets the user type a string, and then a certain lister layout is opened (consisting of 6 windows), all pre-filtered by that string.
Thanks to the forum, I've already got some code to accept a user input and assign it a variable.
But is there button code which will open a window prefiltered with a certain word?
I don't think we have a way of opening a 6-window layout and then applying a filter/pattern supplied later to each of the 6 windows.
You could automate the Find tool to do something similar, but with the results all in one window instead of six, which may not be what you want. (Grouping the results by Location might help separate them, though.)
I needed something like this in the past but couldn't see a way to pass a variable to the Set QUICKFILTER command. Will this be considered?
I solved it though by creating a set of buttons with set variables ( I only required six). This works well if you have a regular set of variable but no use, I guess, if you have many or if they change daily etc.
[quote="leo"]This seems to work, if that's the kind of thing you mean:
Set QUICKFILTER banana[/quote]
No, as dwilbank mentioned, a dialog where I can manually enter a string and then place that string in the command... i.e. Set QUICKFILTER=$MyString where $MyString is the text entered in the dialog.
Unless I've misunderstood the original question, this seems to do what you want.... but if not, it works for my purpose
@set SearchString={dlgstring|Please enter the search string.|Opus rocks!!!}
Go TABSELECT=first
Go TABCLOSEALL
Go "C:\Users\Steve\Desktop\TEST\Folder 1"
Set QUICKFILTER={$SearchString}
Go "C:\Users\Steve\Desktop\TEST\Folder 2" NEWTAB
Set QUICKFILTER={$SearchString}
Go "C:\Users\Steve\Desktop\TEST\Folder 3" NEWTAB
Set QUICKFILTER={$SearchString}
Go TABSELECT=first
[quote="dwilbank"]I'll test it when I get to work tomorrow, and attempt to use AHK to force each window to tile on the screen so I can see them all at once.
Thanks![/quote]
Oh right, I misunderstood. This doesn't use separate windows, just tabs. Seems like the GO NEW command will work though. I hope you have a minimal Opus setup with displaying so many windows
By doing Go NEW though - you may encounter timing issues with where the filter gets applied. I.e. it may not always be applied to the window you really want it to.
I just chimed in on the thread related to allowing lister title bars to be set to an explicit name suggesting that the ability to 'activate' or bring into focus, a lister based on it's titlebar name... could be useful in use-cases like this. Though, you could do something similar perhaps by gluing it together with AHK / AutoIT, etc...
[quote="dwilbank"]I'm sure it will work, and I'll post both codes here when I get done.
Thanks![/quote]
...good luck . I suspect that by opening new lister windows with Go NEW, the quickfilter might only get applied to the "first" window from where you run the button.