DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Explorer Favorites Macro hotkey thingie  (Read 3,051 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Explorer Favorites Macro hotkey thingie
« on: February 01, 2016, 02:20 PM »
I finally got this Explorer Favorites macro hotkey thingie to work the way I want.

The idea is you have a folder open and you want to do some drag and drop between that folder and one that is in your favorites list.  Alt right click the mouse on the favorite and that folder should end up on top after the current folder is opened in a new window.

I haven't done anything with spacing them on the desktop(yet.) (Edit added MoveIt code to do it)
The hotkey is only active if Explorer is the active window.

Code: (autohotkey)
DetectHiddenWindows, On
SetTitleMatchMode,2
SendMode Input
SetWorkingDir %A_ScriptDir%
CoordMode,ToolTip,Screen
CoordMode,Mouse,Screen

GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass


#IfWinActive ahk_Group ExplorerGroup
!RButton::
  MouseGetPos, , ,AWindow , control
  If (control != "SysTreeView321")
	return
Send,^n
Click
Sleep 1000
WinActivate,ahk_id %AWindow%
;those running MoveIt will have folders
;staggered automagically
Process,Exist,MoveIt.exe
If (ErrorLevel)
    Send,^+e
return
« Last Edit: February 01, 2016, 03:07 PM by MilesAhead »

Original address: https://www.donationcoder.com/forum/index.php?topic=42280.0