AutoHotkey Community

It is currently May 26th, 2012, 9:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 356 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24  Next
Author Message
 Post subject:
PostPosted: July 27th, 2009, 7:58 pm 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
And here it is: http://wfures.eqnet.hu/my_ahk_updates/my320MPH.ahk

Integrated into my320MPH script

Image
(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 July 27th, 2009, 8:24 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 8:12 pm 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 8:24 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
@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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 8:35 pm 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
@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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 8:41 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
@fures, looking forward to it :wink:
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2009, 9:06 pm 
Offline

Joined: November 27th, 2006, 3:06 pm
Posts: 69
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 :P 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 :P

How you have it showing a msgbox when you hit enter on a txtfile result is nice :)

Thanks again I really appreciate your response. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2009, 8:55 pm 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
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 :P

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 12:46 am 
Offline

Joined: November 27th, 2006, 3:06 pm
Posts: 69
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 7:33 am 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 10:08 am 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
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 August 1st, 2009, 12:13 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 11:56 am 
Offline

Joined: November 27th, 2006, 3:06 pm
Posts: 69
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 12:24 pm 
Offline

Joined: January 31st, 2008, 8:47 pm
Posts: 88
@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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2009, 7:58 pm 
Offline

Joined: May 15th, 2007, 8:59 pm
Posts: 169
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2009, 6:45 am 
Yeah it needs a new thread - and a new name. 320MPH never really did it I thought.


Report this post
Top
  
Reply with quote  
 Post subject: Agreed.
PostPosted: August 15th, 2009, 9:29 pm 
Offline

Joined: February 17th, 2008, 5:01 pm
Posts: 303
Yes, I think that this is definitely worth it's own thread. It's quite a program.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 356 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group