Questions about 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

Questions about Shell Explorer.

Post by pikalee » 20 Jan 2022, 22:54

https://www.autohotkey.com/board/topic/88131-hilfe-f%c3%bcr-sidebar-gesucht/?hl=shell.explorer

Q1.I found a script to make a sidebar on the left.

How can I display the sidebar on the right?


Code: Select all

^N::PostMessage, 0x111, 31492,, SHELLDLL_DefView1,A
Q2.How can I automatically sort the files in shell.exprlorer by name without pressing the shortcut key?

Code: Select all

^D::EXPLORER.navigate("C:\Users\Computer\Downloads")
It works well.

Code: Select all

^D::EXPLORER.navigate("C:\Users\A_username\Downloads")
It's not working.

Code: Select all

^D::EXPLORER.navigate("C:\Users\%A_username%\Downloads")
It's not working.

Code: Select all

^D::EXPLORER.navigate("A_username\Downloads")
It's not working.

Code: Select all

^D::EXPLORER.navigate("%A_username%\Downloads")
It's not working.

Q3.How can I move the download folder using the A_username?

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Questions about Shell Explorer.

Post by Xeo786 » 21 Jan 2022, 01:42

You have to define explorer in order to make EXPLORER.navigate() work.

There is simplest way you can do that,

Code: Select all

^D::run, C:\Users\%A_username%\Downloads
if you are really into COM shell.application then following example might clear why EXPLORER.navigate() didn't worked

Code: Select all

objShell := ComObjCreate("shell.application")
return
^C::objShell.Explore("C:\")
C::objShell.Open("C:\")
following links has good example how you can sort file in explorer using COM
viewtopic.php?f=5&t=40663&p=185684#p185684
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

Post Reply

Return to “Ask for Help (v1)”