Sign in to follow this  
Followers 0
Akovia

Windows Explorer "Views" shortcuts

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by spudw2k

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0