Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pikalee
Posts: 3
Joined: 20 Jan 2022, 04:50

Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Post by pikalee » 20 Jan 2022, 05:09

Code: Select all

Gui, +LastFound +AlwaysOnTop

Gui Add, ActiveX, vexplorer w800 h800, Shell.Explorer

explorer.Navigate(A_Desktop)

Gui Show




However, shortcuts key were not applied, and some shortcuts key could be applied after a slight search.

Code: Select all

^X::PostMessage, 0x111, 28696,, SHELLDLL_DefView1, A 

^C::PostMessage, 0x111, 28697,, SHELLDLL_DefView1, A 

^V::PostMessage, 0x111, 28698,, SHELLDLL_DefView1, A 

F2::PostMessage, 0x111, 28690,, SHELLDLL_DefView1, A

However, the ability to run files with the enter key and to move them to the parent folder could not be found.

help me

User avatar
mikeyww
Posts: 26599
Joined: 09 Sep 2014, 18:38

Re: Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Post by mikeyww » 20 Jan 2022, 06:06

Code: Select all

Gui, Add, ActiveX, w980 h640 vWB, Shell.Explorer
WB.Navigate(A_Desktop)
Gui, Show,, Explorer

#IfWinActive Explorer ahk_class AutoHotkeyGUI ahk_exe AutoHotkey.exe
; https://www.autohotkey.com/boards/viewtopic.php?p=204533#p204533
; https://www.autohotkey.com/boards/viewtopic.php?f=82&t=94877
Enter::Try WB.Navigate(WB.Document.Folder.ParentFolder.Self.Path) ; Navigate to parent
#IfWinActive

pikalee
Posts: 3
Joined: 20 Jan 2022, 04:50

Re: Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Post by pikalee » 20 Jan 2022, 22:37

mikeyww wrote:
20 Jan 2022, 06:06

Code: Select all

Gui, Add, ActiveX, w980 h640 vWB, Shell.Explorer
WB.Navigate(A_Desktop)
Gui, Show,, Explorer

#IfWinActive Explorer ahk_class AutoHotkeyGUI ahk_exe AutoHotkey.exe
; https://www.autohotkey.com/boards/viewtopic.php?p=204533#p204533
; https://www.autohotkey.com/boards/viewtopic.php?f=82&t=94877
Enter::Try WB.Navigate(WB.Document.Folder.ParentFolder.Self.Path) ; Navigate to parent
#IfWinActive
thx.

User avatar
smrt1
Posts: 30
Joined: 27 Mar 2022, 04:47

Re: Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Post by smrt1 » 06 May 2022, 07:37

Interesting.

I've searched for documentation about this for a while and didn't found something usable.
I'm mainly looking for a way to change the default viewmode ; if someone knows...

Post Reply

Return to “Ask for Help (v1)”