Many times I just want to open one Explorer window to something simple
like "t:\temp" or whatnot. I found I was opening ReOpen to get the input
line, then typing "t:\temp" to go there. Which is ok via hotkey.. but I
came up with this little macro so that I could click an icon on my taskbar
and have it come up to C:\ with the cursor in the edit line. That way
I can just type where I want to go.
I compiled it to x.exe and added an X icon for myself but you can make
whatever customizations you like on your own system. The numbers work
well on my 4x3 monitor using 1280x1024 resolution but you may want to
experiment to zero things in on your monitor.
The AutoIt3 script just launches "C:\" to get an explorer window.
It moves and sizes the window, then clicks the mouse in the Edit control.
Just start typing to go someplace other than C:.
If you change the window size or use a radically different screen res. then
you'll probably need to experiment with the MouseClick numbers to get the
mouse cursor into the edit control.
;run to open an Explorer Window at C:
;with caret in the edit control. To
;switch to another folder, just type
;it in.
;
;adjust the numbers to suit your monitor
;and screen res. Also you may need to
;adjust Sleep to the speed of your
;PC.
;
;MilesAhead
;
AutoItSetOption("MouseCoordMode",0)
ShellExecute("C:\")
Sleep(250)
WinMove("C:\","",200,140,900,700)
MouseClick("left",300,40)