AutoHotkey Community

It is currently May 26th, 2012, 4:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5

If you've tried Seek, do you:
like it?
neutral...
hate it?
You may select 1 option

View results
Author Message
 Post subject: hello
PostPosted: April 7th, 2005, 10:52 am 
hi, i'm the author of Find&Run robot.
i just wanted to say hello and say really nice work.

just found out about AutoHotKey and the 320mph + seek scripts.
i'm adding mention of them in the Find&Run robot help file list of related programs.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2005, 2:39 pm 
Offline

Joined: September 24th, 2004, 5:10 am
Posts: 32
hi mouser, thanks for dropping this note.

your Find&Run rebot is very extensive, with lotsa options. keep up the nice work... :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2005, 2:23 pm 
Hi,
just found this rather old thread -

Chris wrote:
Quote:
The CharToOem function translates a string into the OEM-defined character set. The OemToChar function translates a string from the OEM-defined character set into either an ANSI or a wide-character string.

These functions can be added if anyone can demonstrate a scripting use for them.

This may be useful to translate a file buffer from DOS to Windows...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2006, 9:36 am 
Offline

Joined: December 8th, 2005, 8:12 am
Posts: 67
I am using Phi’s “Seek” and I am wondering if I can seek and in my Documents also, in the same way I seek the start menu programs. Thanks.

Edit after couple of hours:
Nevermind, I am testing mph320 now, which scans all documents.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2006, 8:00 am 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Hi,
I had a wish: Replacing the editcontrol with a combo where you can choose the last entered expressions.
After a second I decided to change it by myself. Here are the changes:

Add the last line
Code:
; Specify the filename and directory location to save
; the cached key word/phrase of last search. There is
; no need to change this unless you want to.
keyPhrase = %tmp%\_Seek.key
RecentFileListCount = 9

change
Code:
   NewKeyPhrase = %PrevKeyPhrase%
   NewOpenTarget = %PrevOpenTarget%

   ; ADD THE TEXT BOX FOR USER TO ENTER THE QUERY STRING
   Gui, 1:Add, Edit, vFilename W600, %NewKeyPhrase%

   ; ADD MY FAV TAGLINE

to
Code:
   NewKeyPhrase = %PrevKeyPhrase%
    OldSavedKeyPhrase = %NewKeyPhrase%
   NewOpenTarget = %PrevOpenTarget%

   ; ADD THE TEXT BOX FOR USER TO ENTER THE QUERY STRING
   Gui, 1:Add, ComboBox, vFilename W600, %NewKeyPhrase%

   ; ADD MY FAV TAGLINE



-----------------

change:
Code:
; SAVE THE KEY WORD/PHRASE FOR NEXT RUN IF IT HAS CHANGED
If TrackKeyPhrase = ON
{
   If (PrevKeyPhrase <> Filename || PrevOpenTarget <> OpenTarget)
   {
      FileDelete, %keyPhrase%
      FileAppend, %Filename%`n, %keyPhrase%
      FileAppend, %OpenTarget%`n, %keyPhrase%
   }

to

Code:
; SAVE THE KEY WORD/PHRASE FOR NEXT RUN IF IT HAS CHANGED
If TrackKeyPhrase = ON
{   
   Filenamenew:=RemoveOldEntries(Filename, OldSavedKeyPhrase)
   If (PrevKeyPhrase <> Filenamenew || PrevOpenTarget <> OpenTarget)
   {
      FileDelete, %keyPhrase%     
      FileAppend, %Filenamenew%`n, %keyPhrase%
      FileAppend, %OpenTarget%`n, %keyPhrase%
   }
}


--------------
Add a new function
Code:
; === BEGIN RemoveOldEntries ========================
RemoveOldEntries(Filename, OldSavedKeyPhrase)
{      
   global RecentFileListCount
   NewSavedKeyPhrase=
   ;Count the number of elements
   nCounter = 1
   Loop, parse, OldSavedKeyPhrase, |
   {
      IfGreaterOrEqual, nCounter, %RecentFileListCount%
      {         
         break
      }
      ;no duplicate entries
      ifequal, filename, %A_LoopField%
      {
         continue
      }      
      NewSavedKeyPhrase=%NewSavedKeyPhrase%|%A_LoopField%
      nCounter +=1
   }
   StringLeft, FirstChar, NewSavedKeyPhrase, 1
   ifnotequal, FirstChar, |
   {      
      NewSavedKeyPhrase=|%NewSavedKeyPhrase%
   }
   Filename:=Filename . NewSavedKeyPhrase   
   return %Filename%
}
return
;... END RemoveOldEntries.............................


Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 21st, 2009, 9:03 am 
Offline

Joined: February 15th, 2007, 12:01 am
Posts: 32
Location: Seattle, WA, USA
Thanks for a great script.

I wanted to be able to see AHK scripts in my results, so I added/modified the following lines. Works great.

Code:
; The following is used to add .ahk files from the ahk\lib directory
lib = C:\Program Files\AutoHotkey\Lib

; FOR ENGLISH VERSION OF WINDOWS
scanPath = %A_StartMenu%|%A_StartMenuCommon%|%lib%


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks Phi ....
PostPosted: March 1st, 2011, 11:18 pm 
Offline

Joined: February 28th, 2011, 9:10 pm
Posts: 4
You have saved us from losing our memory cells ( and our hair too ! ), in the vain search for programs, hidden somewhere in the start menu. Thank you.

Also, a little addition to this nice program, in the way of using UP and DOWN arrow keys for faster navigation into the list box, is given below :

Code:

Up::
   
   ControlFocus, ListBox1
        ControlSend, ListBox1, {Up}, A

Return


Down::

   ControlFocus, ListBox1
        ControlSend, ListBox1, {Down}, A

Return



I attached this code before the start of the quit routines and it works well.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 11th, 2011, 6:28 pm 
Offline

Joined: July 10th, 2009, 5:31 pm
Posts: 121
Location: UK
Novice here, so this is going to be down to user error!

Just installed this great tool. I called it SearchStartMenu.ahk and added this line at the top:
Code:
!F1:: ; Hotkey = Alt + F1


Then, having just learned from hugov that you can merge scripts, I added it to my slowly growing VariousMerged.ahk The very end of that is now:

Code:
; Code pasted in from several other scripts, like ContextHelp, etc
#Include C:\Docs\SUNDRY\AutoHotkey\Searching\SearchStartMenu.ahk


That works fine when I use Alt+F1. But when I close the results dialog (with either the 'X' or the 'Exit' button), it also closes the entire script!

--
Terry, East Grinstead, UK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2011, 8:25 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Using #include to merge scripts is a good idea, keeps your code more organised. The script probably closes because of a ExitApp, I found one at line 815 or so. If you replace that by
Code:
Gui, Destroy ; yes, not very nice but it probably works best here
Return
it might work (haven't tested)

This script is quite old, there are newer (faster, better) scripts such as 320mph (look for fures' version in the last few pages) http://www.autohotkey.com/forum/viewtopic.php?t=3010

Alternatively: my experience with 320mph is that is starts quite/very fast so you don't actually have to have the script running the entire time if you create a hotkey that simply runs the script (!F1::Run script.ahk)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2011, 11:28 am 
Offline

Joined: July 10th, 2009, 5:31 pm
Posts: 121
Location: UK
Thanks hugov, I'll get into that.

--
Terry, East Grinstead, UK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2011, 12:43 pm 
Offline

Joined: July 10th, 2009, 5:31 pm
Posts: 121
Location: UK
hugov wrote:
Using #include to merge scripts is a good idea, keeps your code more organised.


OK, I've now done that for all of the sections:

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This is my first attempt to merge various scripts. I'm using #Include directive for all.

; #NoTrayIcon ; Hide/Don't hide the tray icon. (If hidden, use Win + Alt+ X to close.)
; #!x::ExitApp ; Hotkey = Wndows + Alt + X = Immediate exit of this script. This is needed if the #NoTrayIcon directive is enabled.


; 1. ContextHelp        WORKS
#Include C:\Docs\SUNDRY\AutoHotkey\AHK itself\ContextHelp.ahk

; 2. Thumbnails-AltGr   WORKS
#Include C:\Docs\SUNDRY\AutoHotkey\Explorer\Thumbnails-AltGr.ahk

; 3. Search1            WORKS
#Include C:\Docs\SUNDRY\AutoHotkey\Searching\Search1.ahk

; 4. SearchStartMenu    WORKS BUT PROBLEM: Closing it closes ALL!
#Include C:\Docs\SUNDRY\AutoHotkey\Searching\SearchStartMenu.ahk

; 5. FavoriteFolders    NOT WORKING
#Include C:\Docs\SUNDRY\AutoHotkey\Explorer\FavoriteFolders.ahk


Quote:
The script probably closes because of a ExitApp, I found one at line 815 or so. If you replace that by
Code:
Gui, Destroy ; yes, not very nice but it probably works best here
Return
it might work (haven't tested)


Thanks, that's working fine now!

But FavoriteFolders is still elusive. Works perfectly when independent, but not when included. I tried it again with the original code freshly downloaded, but no change.

--
Terry, East Grinstead, UK


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 17 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