| View previous topic :: View next topic |
| Author |
Message |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Mon Jul 27, 2009 6:58 pm Post subject: |
|
|
And here it is: http://wfures.eqnet.hu/my_ahk_updates/my320MPH.ahk
Integrated into my320MPH script
(the last 3 results are from the txt file)
As a default, it will use the %A_Desktop%\MyTxtFile.txt as the source - you can change it in settings.
It indicates matches in the txt file after the file-match list - only if it fits within the max results value - of course.
If you hit enter - it shows the matching line in a msgbox.
cheers,
fures
Last edited by fures on Mon Jul 27, 2009 7:24 pm; edited 1 time in total |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Mon Jul 27, 2009 7:12 pm Post subject: |
|
|
I think theres no need to reiterate the whole script in a seperate file. It only needs this little extension in the GetText proc.
| Code: | ;Addition search in %ExtraTxtFile% for %CurrText% parsed by space
Loop, read, %ExtraTxtFile%
{
CurrItemCorrected := A_LoopReadLine
MatchFound = Y
Loop, Parse, CurrText, %A_Space%
{
IfEqual,opst,-
{
StringTrimLeft,Srch,A_LoopField,1
IfInString, CurrItemCorrected, %Srch%
MatchFound = N
}
else ;not -excludeword
{
IfNotInString, CurrItemCorrected, %A_LoopField% ;vagy FName helyett CurrItem
MatchFound = N
}
}
IfEqual, MatchFound, Y
{
;AddResultLine
Count2 ++
IL_Add(ImageListID1,"Shell32.dll",86) ;or 11
LV_Add("Icon" Count2, SubStr(A_LoopReadLine,1,30) "...", "Ln " A_Index, A_LoopReadLine)
LV_ModifyCol()
}
}
;end of Addition search in %ExtraTxtFile% for %CurrText% parsed by space
|
and some other lines in ButtonOpen proc
fures |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Mon Jul 27, 2009 7:24 pm Post subject: |
|
|
@fures: I think your script would greatly improve if you would adapt a similar strategy to nDroid (given the fact that is closed source) and you could change your script in such a way to strip the script to the and move all the bits to specific includes or plugins it would make it much easier to adapt and add. _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Mon Jul 27, 2009 7:35 pm Post subject: |
|
|
@HugoV, you're very much right. Plugins are a great approach.
I'll have to think about it how to do it the lazy way - without rewriting the whole stuff.
thanx
fures |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Mon Jul 27, 2009 7:41 pm Post subject: |
|
|
@fures, looking forward to it
I would suggest you start a new thread if and when you
release it, makes it easier to discuss, this thread is already
20 [edit: make that 21] pages _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
sabot7726
Joined: 27 Nov 2006 Posts: 69
|
Posted: Tue Jul 28, 2009 8:06 pm Post subject: |
|
|
Wow guys, I really appreciate the effort you put in for me Sorry I was gone for a couple days
Fures, your version is just about exactly what I was looking for with only a couple tweaks I need to try to figure out.
Namely:
1. I'd like to try to figure out how to make the program wider and be able to display more characters of the txt file results in the return window. I tried playing with the height/width but then the results just showed up next to each other horizontally and I couldnt use the arrow keys anymore I wish I was half a programmer I'd be able to tweak this stuff.
2. I noticed its showing me boxes where tabs are in my txtfile, does anyone know how I can edit those out of my txt file?
3. Is there a way I can limit how many of each type of result I get? Sometimes I get a ton of file results that drown out my txtfile results
How you have it showing a msgbox when you hit enter on a txtfile result is nice
Thanks again I really appreciate your response.  |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Fri Jul 31, 2009 7:55 pm Post subject: |
|
|
New version: 4.1.3
| sabot7726 wrote: |
1. I'd like to try to figure out how to make the program wider and be able to display more characters of the txt file results in the return window.
|
Use Alt-V for a Large View gui (you can also click the Change View checkbox in the bottom)
| sabot7726 wrote: |
2. I noticed its showing me boxes where tabs are in my txtfile, does anyone know how I can edit those out of my txt file?
|
Tabs are replaced now by spaces.
| sabot7726 wrote: |
3. Is there a way I can limit how many of each type of result I get? Sometimes I get a ton of file results that drown out my txtfile results
|
2 separate limiter variables in the options gui/ini file.
MaxItems limits file results.
MaxTxtItems limits txt file hits.
I hope you like the changes.
enjoy
fures |
|
| Back to top |
|
 |
sabot7726
Joined: 27 Nov 2006 Posts: 69
|
Posted: Fri Jul 31, 2009 11:46 pm Post subject: |
|
|
Hi Fures,
The alt-v view is working great.
I set up the program to only search a folder on my desktop by removing everything in the pathlist and adding the folder by itself. For some reason when it does a full scan its still searching everywhere though.
I have fastscan pointed at the same file and its fine.
Also it seems the icons in the results list are off by one. For example if I type something and it returns a pdf file then 2 text files, the pdf and first text file will have a pdf icon. The icons don't affect the file launching in the correct program though. |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Sat Aug 01, 2009 6:33 am Post subject: |
|
|
UPDATE version 4.1.4
- Icon offset issue fixed
- Txt file search results have a new icon now
You are right: Full scan and Fast scan are kind of independet from each other, so you have to limit both if you want.
Just a question: Why do you limit the program to 1 folder only. To my experience, it can well handle large amount of data. At least Start Menu and Documents I would keep in the scope.
fures |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Sat Aug 01, 2009 9:08 am Post subject: |
|
|
UPDATE: version 4.2
- It can "sense" if you insert a removable drive (USB or Card OR ext.HD), and can index it on the fly so you can search it. If the removable drive is removed, it is also "sensed" - and you cant search it anymore.
(for this feature, special thanks to MasterFocus and dannymet here)
Use the "setup options" for ScanUSB checkbox.
It is useful to me - I hope it does good for you too.
cheers,
fures
Last edited by fures on Sat Aug 01, 2009 11:13 am; edited 1 time in total |
|
| Back to top |
|
 |
sabot7726
Joined: 27 Nov 2006 Posts: 69
|
Posted: Sat Aug 01, 2009 10:56 am Post subject: |
|
|
For home use I would have it pointing eveywhere but for work I plan on pointing it to 1 folder that will have several subfolders of various fire and police info. So far I've just been testing it out in anticipation
I'm hoping I can put the exe file on a server and people can have a shortcut to it and share the config file, haven't tested that part yet. |
|
| Back to top |
|
 |
fures
Joined: 31 Jan 2008 Posts: 88
|
Posted: Sat Aug 01, 2009 11:24 am Post subject: |
|
|
@sabot7726,
The shared config file could cause problems - I would say it might not even work. This is because the script almost continuously writes data to the config file.
But you'll have to test it.
Easier would be to have a separate copy of the exe&ini in all users' pcs. You can have a specially prepared ini-file to distribute to everyone. That way it surely works.
You can download an exe file from http://wfures.eqnet.hu/my_ahk_updates/my320MPH.exe
best
fures |
|
| Back to top |
|
 |
icefreez
Joined: 15 May 2007 Posts: 169
|
Posted: Mon Aug 03, 2009 6:58 pm Post subject: |
|
|
| Yes please start a separate thread for this new mod of this script. It is a bit confusing to find your updates and the mod scripts feature description. |
|
| Back to top |
|
 |
Guest344 Guest
|
Posted: Mon Aug 10, 2009 5:45 am Post subject: |
|
|
| Yeah it needs a new thread - and a new name. 320MPH never really did it I thought. |
|
| Back to top |
|
 |
JoeSchmoe
Joined: 17 Feb 2008 Posts: 303
|
Posted: Sat Aug 15, 2009 8:29 pm Post subject: Agreed. |
|
|
| Yes, I think that this is definitely worth it's own thread. It's quite a program. |
|
| Back to top |
|
 |
|