Akovia Posted November 12, 2008 Share Posted November 12, 2008 Hi, I am trying to figure out a way to quickly change to different explorer views via shortcuts. (Details, Icons, List, etc..) Since I am new to this I wanted to ask if this sounded like a doable project for a newbie, or would this be a more advanced script for a first try? I searched the forums and saw something similar, but not what I was looking for. It still amazes me that it is not a function of windows by default, but then again...=P If there is something already out there or any pointers or thoughts on the subject it would be most appreciated. Regards, Akovia Link to comment Share on other sites More sharing options...
spudw2k Posted November 12, 2008 Share Posted November 12, 2008 (edited) I am trying to figure out a way to quickly change to different explorer views via shortcuts.Keyboard shortcuts? or Shortcut icons on the desktop? Here's an example. #include <GUIListView.au3> $hWnd = _AttachExplorerList() _GUICtrlListView_SetView($hWnd,_RotateMode($hWnd)) Func _AttachExplorerList() $h = WinGetHandle("[CLASS:CabinetWClass]") $hwnd = ControlGetHandle($h,"","SysListView321") Return $hwnd EndFunc Func _RotateMode($hwnd) $mode = _GUICtrlListView_GetView($hwnd) $mode += 1 If $mode > 4 Then $mode = 1 Return $mode EndFunc Check the helpfile for _GUICtrlListView_SetView() to see the params. Edited November 12, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Akovia Posted November 13, 2008 Author Share Posted November 13, 2008 Keyboard shortcuts? or Shortcut icons on the desktop? Here's an example. #include <GUIListView.au3> $hWnd = _AttachExplorerList() _GUICtrlListView_SetView($hWnd,_RotateMode($hWnd)) Func _AttachExplorerList() $h = WinGetHandle("[CLASS:CabinetWClass]") $hwnd = ControlGetHandle($h,"","SysListView321") Return $hwnd EndFunc Func _RotateMode($hwnd) $mode = _GUICtrlListView_GetView($hwnd) $mode += 1 If $mode > 4 Then $mode = 1 Return $mode EndFunc Check the helpfile for _GUICtrlListView_SetView() to see the params. Thanks for taking the time to respond. I think I found an easier way out to achieve my goal. I downloaded a program called Stoke-It that enables mouse gestures for Windows. Since I already use them all the time in my Opera browser, it is even better than having keyboard shortcuts. I did notice that AutoIt is referenced alot on Stroke-Its' website which I thought was cool. I will look to AutoIt again the next time I need to automate something I can't figure out otherwise. Once again I appreciate the input, Akovia Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now