Any Q-Dir users here? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Any Q-Dir users here?

Post by newcod3r » 14 May 2022, 21:28

I have to ask as the code I'm using on Q-Dir isn't working as intended. When typing in the address bar, ;co

Code: Select all

:X:;co::SendInput E:\Courses{Enter}
It does send the correct path but I still need to hit Enter again manually for it to navigate there. Is it a setting issue within Q-Dir, or Alternatively, what can I do to make this work on Q-Dir, but preferably without changing the code above as it works properly on windows explorer and other software?

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

Re: Any Q-Dir users here?

Post by mikeyww » 14 May 2022, 21:57

I would look at some of the other posts about Q-Dir. viewtopic.php?f=76&t=42873

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Any Q-Dir users here?

Post by newcod3r » 14 May 2022, 22:33

mikeyww wrote:
14 May 2022, 21:57
I would look at some of the other posts about Q-Dir. viewtopic.php?f=76&t=42873
yup I saw those same posts too, but it doesn't really address the root cause - i.e. it is using long sleep in between inputs, which means I have to have many lines of duplicate code just to suit Q-Dir itself..Su

User avatar
Xtra
Posts: 2744
Joined: 02 Oct 2015, 12:15

Re: Any Q-Dir users here?

Post by Xtra » 14 May 2022, 23:38

newcod3r wrote:
14 May 2022, 22:33
which means I have to have many lines of duplicate code just to suit Q-Dir itself
Write reusable functions to reduce code when needed.

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Any Q-Dir users here?

Post by newcod3r » 15 May 2022, 00:30

Xtra wrote:
14 May 2022, 23:38
newcod3r wrote:
14 May 2022, 22:33
which means I have to have many lines of duplicate code just to suit Q-Dir itself
Write reusable functions to reduce code when needed.
Yes I do, but with this type of straightforward code, it may not make sense?

Code: Select all

:X:;co::SendInput E:\Courses{Enter}

ahk7
Posts: 574
Joined: 06 Nov 2013, 16:35

Re: Any Q-Dir users here?

Post by ahk7 » 15 May 2022, 02:24

Not a Q-Dir user, but from what I see the developer is quite active, it might be better if you contact the dev and ask to implement similar functions to Total Commander (and other file managers):
1. Directory Bookmarks/favourites (often a dropdown menu near the folder path control)
2. Command line parameters to open specific folder, in Total Command you can simply start Total Commander "again" even it is running and it will go to a specified folder (you can control the panel and if there should be a new tab etc) - see https://www.ghisler.ch/wiki/index.php?title=Command_line_parameters#.2FO the /O parameter and examples below.
[3. go to specific file in folder similar to 2 but sets focus to specified file]

Both seem easy to implement so they might want to add it and you can reliable go to folders and allow for easier scripting.

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Any Q-Dir users here?

Post by boiler » 15 May 2022, 06:56

This doesn’t address your question, but I’m thinking you might want to make the hotstring you showed:

Code: Select all

:X:;co::SendInput E:\Courses{Enter}

...use the standard replacement text approach like this (with Send Input method specified if that’s important to you):

Code: Select all

:SI:;co::E:\Courses{Enter}

There probably is no real difference, but also probably no advantage to having it execute a SendInput command.

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Any Q-Dir users here?

Post by newcod3r » 15 May 2022, 07:36

boiler wrote:
15 May 2022, 06:56
This doesn’t address your question, but I’m thinking you might want to make the hotstring you showed:

Code: Select all

:X:;co::SendInput E:\Courses{Enter}

...use the standard replacement text approach like this (with Send Input method specified if that’s important to you):

Code: Select all

:SI:;co::E:\Courses{Enter}

There probably is no real difference, but also probably no advantage to having it execute a SendInput command.
yup it doesn't solve the problem, but I like that this code is much shorter, and I will implement this going forward. Thanks!

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Any Q-Dir users here?  Topic is solved

Post by newcod3r » 16 May 2022, 03:39

ahk7 wrote:
15 May 2022, 02:24
Not a Q-Dir user, but from what I see the developer is quite active, it might be better if you contact the dev and ask to implement similar functions to Total Commander (and other file managers):
1. Directory Bookmarks/favourites (often a dropdown menu near the folder path control)
2. Command line parameters to open specific folder, in Total Command you can simply start Total Commander "again" even it is running and it will go to a specified folder (you can control the panel and if there should be a new tab etc) - see https://www.ghisler.ch/wiki/index.php?title=Command_line_parameters#.2FO the /O parameter and examples below.
[3. go to specific file in folder similar to 2 but sets focus to specified file]

Both seem easy to implement so they might want to add it and you can reliable go to folders and allow for easier scripting.
just to share I contacted the developer and he fixed it almost immediately! super impressed! hope it helps other q-dir users too 🙏🏼

char101
Posts: 11
Joined: 10 Mar 2017, 04:15

Re: Any Q-Dir users here?

Post by char101 » 17 Jun 2022, 22:24

With Q-Dir, the key need to be pressed for a certain time. Therefore we need to use SetKeyDelay with SendEvent.

For example, to duplicate current tab with XButton1

Code: Select all

XButton1::
	SetKeyDelay, 100, 100
	SendEvent ^k
	return

Post Reply

Return to “Ask for Help (v1)”