I want to make Ctrl-Shift-d operate differently in Explorer (CabinetWClass) from in the SaveAs dialogue box (ahk_clas #32770).
I considered that a SaveAs box is essentially still explorer, but this shouldn't matter to AHK, since I've distinguished two classes.
Does anyone know in general how I can use a hotkey differently in two different apps, and how to distinguish Explorer from SaveAs please?
Code: Select all
#IfWinActive ahk_class CabinetWClass ; Only process lines below here if CabinetWClass is in focus ?????? Not work, see ~
#if (A_ComputerName = "ASUS")
~^+d::Explorer_JumpTo("D:\")
#if
#IfWinActive ; End context sensitivity for CabinetWClass
#IfWinActive ahk_class #32770
#if (A_ComputerName = "ASUS")
~^+d::SaveAs_Paste("D:\")
#if
#IfWinActive ; End context sensitivity for CabinetWClass