Annoying autosearch in explorer


  1. Posts : 66
    Windows 7 Ultimate x64 SP1
       #1

    Annoying autosearch in explorer


    If I go to Tools=>Folder Options=>View=>When typing into list view
    and enable
    Automatically type into the search box
    I will be able to automatically search when I start typing(which is what I actually want...I'm only searching the current directory without the subfolders).
    But there is one really annoying thing that I'm searching for a way to fix

    If I press Enter\NumpadEnter,it will open the file I want to open but it will also execute a search on the current folder which is really annoying.

    The only thing I can think of(and I don't like it)is not use AutoHotkey to make those keys open the file on which I hit enter in another way

    Code:
    #IfWinActive,AHK_class CabinetWClass
    Enter::
    NumpadEnter::
    Keywait,% SubStr(A_ThisHotKey,2)
    for window in ComObjCreate("Shell.Application").Windows
    Selected := window.Document.SelectedItems
    for item in Selected
    Run,% Item.Path
    Return
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    Instead of using Shell.Application you could just use the clipboard. Send ^c then parse the clipboard. Test if the filename returned is a file or folder and take the appropriate action. Looping through all the items in the shell is ok for a single active window or item, but it tends to bog when the loop is run multiple times in real time.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:51.
Find Us