Archives

Archives / 2004 / August
  • Windows Run Command Wish List

    In order to get more familiar with the new features in version 2.0 of .NET and C# I have been working on a side project using C# Express Beta 1. The project that I have been working on is a replacement for the windows run command. I for one use the run command a lot and there has always been some features lacking. Currently the run command provides a drop down list of the last 26 typed commands and the auto complete functionality for the file system / browser history as described here. Some features that I have already implemented for my new run command are:
    • Auto complete commands - as you type you are given a suggestion list matching what you have typed and the command that matches the closest is filled in for you
    • Smart suggestion list - the commands you use the most often appear at the top of the suggestion list, and the commands are pre-populated with common commands that someone might run like:
      • Start Menu Shortcuts
      • Control Panel Applets
      • Favorites
      • Recently Opened Documents
      • Common Windows Commands - i.e. My Computer, My Pictures, Administrative Tools, etc.
      • All Executables in the Path
    • Easily create short commands - being able to define short strings to run the command of your choice, like defining "ie" to open up Internet Explorer.
    • Command hotkeys - being able to assign a hotkey for any of your custom commands.
    • List computer shares on network - when you type "\\" it provides a list of the computers on your LAN and then when you type "\" again it provides a list of the shares on that computer (including hidden shares)
    Also one other side feature not necessarily related to the run command that I'm including is the ability to assign a global hotkey that will minimize the foreground application to the system tray.
     
    What I would like to know is if there are other things people would like to see included in a replacement run command? Please leave your suggestions in the comments. Once I have a working version I will post it.
     
    Update: For anyone interested I have released see this post for information about the release of my program Run++.

  • Turn AutoCompletion on for Run Command

    Have you ever been typing a file path in the run command and had to hit the down arrow to select the file you want from the drop down list? Wouldn't it be better if as you typed it automatically filled in the text for you?
     
    The run command uses the SHAutoComplete interface which is also how IE and most other auto completing text/combo boxes in windows do auto complete. By default the auto complete mode is set to suggest only, meaning just give a drop down of items that match what I have typed. There is also an auto complete mode to append, which automatically fills in the text with the closest match from the suggest list. The append mode is turned off by default but you can enable it by going to Internet Options > Advanced, and checking the box next to Use inline AutoComplete, or if you like you can change it in the registry Change the Auto Complete Mode [1]. Now when you type paths in the run command, open/save dialogs, IE address bar, and others that use the default auto complete registry settings you will have both the suggest and append mode.
     
    On a side note the textbox and combobox in .Net 2.0 also have auto complete functionality using the same SHAutoComplete underneath. The one thing I don't like about the new auto complete functionality in .Net 2.0 is that the dropdown width is set to the width of the textbox and you can't change it in code, at least I couldn't figure out how, this forced me to implement my own auto complete functionality.
     
    [1] http://www.regedit.com, if you are interested in the registry I highly recommend this site, it is one of my favorites.

  • My blogging philosophy and my need to analyse my referral log

    One of the primary reasons that I blog is to help the community, I don't really expect anyone to directly subscribe to by blog (just out of curiosity does anyone?). I depend on people finding my information through search engines. Most of my posts are technical things that for what ever reason I spent some time figuring out how to accomplish.

  • Recusive GetFiles for DirectoryInfo via a C# Iterator

    I have been working on a project using C# Express and so I have been playing around with some of the new C# 2.0 features. In my project I had a need to get all the files of a particular type in a given directory including all sub-directories. The DirectoryInfo class has a method GetFiles that takes a search pattern (ie "*.exe") but it only searches that directory it doesn't search sub-directories. So I figured this would be a good chance for me to play with these new things called iterators. At any rate I wrote a recursive version of GetFiles using an iterator so that I could do a simple foreach loop to get all the files recursively.

  • RoboForm - Bookmark/Password manager

    Well I started using RoboForm a couple of days ago after reading the comments on Dan's post. So far I have to say I really like it. It fills in form data. It acts as a bookmark manager and if that bookmark needs login information then it will fill in that information and login so you don't have to login every time you visit that page. Another feature I like is that all the bookmarks (passcards as they call them) show up in both Firefox and IE. I'm almost thinking of using this as my standard bookmark manager as well as my password database. For security it has a master password so I only need to remember that one password. Also if I want more security I could store my data on a USB key drive.

  • Finished my internship

    I have not been blogging much over the summer because I was busy with my internship but I'm back now so you will see a few more blog posts from me.