topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 6:21 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Explorer Favorites Macro hotkey thingie  (Read 1890 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Explorer Favorites Macro hotkey thingie
« on: February 01, 2016, 08:20 AM »
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 [Select]
  1. SetWorkingDir %A_ScriptDir%
  2. CoordMode,Mouse,Screen
  3.  
  4. GroupAdd,ExplorerGroup, ahk_class CabinetWClass
  5. GroupAdd,ExplorerGroup, ahk_class ExploreWClass
  6.  
  7.  
  8. #IfWinActive ahk_Group ExplorerGroup
  9. !RButton::
  10.   MouseGetPos, , ,AWindow , control
  11.   If (control != "SysTreeView321")
  12.         return
  13. Send,^n
  14. Sleep 1000
  15. WinActivate,ahk_id %AWindow%
  16. ;those running MoveIt will have folders
  17. ;staggered automagically
  18. Process,Exist,MoveIt.exe
  19.     Send,^+e
  20. return
« Last Edit: February 01, 2016, 09:07 AM by MilesAhead »