how can i change the folder in an in/active window via hotkey
Posted: 18 Nov 2016, 09:54
what i want a hotkey to do:
after pressing the hotkey
a specifivic window should be selected let's say i use WinActivate for that
then the directory should be changed to a subdirectory of that folder
e.g.:
pressing hotkey
-> folder "C:\newF" was activated
--> chage directory of this folder to a subfolder "C:\newF\one"
this is how far i've made it ....
but what comes next?
how can i change the directory to show me another one(subdirectory in this case "c:\newF\one") in the Active window
i would imagine that the commands for a 2nd hotkey that sets the directory in an active window to the folder one level higher would be the similar, right?
any tips, hints or ideas
thx in advance
after pressing the hotkey
a specifivic window should be selected let's say i use WinActivate for that
then the directory should be changed to a subdirectory of that folder
e.g.:
pressing hotkey
-> folder "C:\newF" was activated
--> chage directory of this folder to a subfolder "C:\newF\one"
this is how far i've made it ....
Code: Select all
pathToF := "C:\newF"
IfWinExist, %pathToF% ahk_class CabinetWClass
{
WinActivate, %pathToF% ahk_class CabinetWClass
} else {
run, %pathToF%
}
how can i change the directory to show me another one(subdirectory in this case "c:\newF\one") in the Active window
i would imagine that the commands for a 2nd hotkey that sets the directory in an active window to the folder one level higher would be the similar, right?
any tips, hints or ideas
thx in advance