This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 q-dir how to control
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xiaoz4

2 Posts

Posted - 10/23/2013 :  20:08:53  Show Profile
About the q-dir this software, how to control,

^w %{left} %{up} Will not work

Edited by - xiaoz4 on 10/23/2013 20:10:38

Rob

USA
2615 Posts

Posted - 10/24/2013 :  10:21:42  Show Profile  Visit Rob's Homepage
There's something very odd about how Q-Dir handles hot keys. I have no explanation why it will recognize a regular character (like acSendKeys("r") will be recognized and select the file/folder that begins with the letter "r"), but simply ignores when there's a modifier like Control or Alt pressed.

Unfortunately, this is something that only the developer of Q-Dir can answer. S+ is sending the synthesized key combination, but something internal to Q-Dir is ignoring the key press event(s). Using the script below I could sometimes get CTRL+W to work, but very inconsistently:
acDelay(250)
acSendControlDown()
acDelay(250)
acSendKeys("w")
acDelay(250)
acSendControlUp()
There's something very particular about the way Q-Dir is processing keyboard input and I'm not certain what it is that's causing the odd behavior.

I'll post here if I can figure anything out.
Go to Top of Page

xiaoz4

2 Posts

Posted - 10/26/2013 :  23:03:04  Show Profile
Thank you
Like this software
Because it can display the size percentage
Go to Top of Page

dele

4 Posts

Posted - 02/01/2014 :  04:23:48  Show Profile
I am new here. Just switched from Strokeit to StrokesPlus (2.8.1.1).
I also use Q-Dir and wanted to use "Left" to navigate to the higher folder.
This worked with StrokeIt sending the hotkey BACK. (So it isn't a only a problem Q-Dir). But it doesn't work with S+. I analysed with SpyEx the keyboard messages, which are send to Q-Dir.

With Strokeit the following messages are send:
hWnd Message wParam lParam
0x000C0A70 WM_KEYDOWN 0x8 0x1
0x000C0A70 WM_KEYUP 0x8 0xC0000001

With S+ the following messages are send:
hWnd Message wParam lParam
0x000E0A6E WM_KEYDOWN 0x8 0xE0001
0x000E0A6E WM_CHAR 0x8 0xE0001
0x000E0A6E WM_CHAR 0x8 0xE0001
0x000E0A6E WM_KEYUP 0x8 0xC00E0001
0x000E0A6E WM_KEYUP 0x8 0xC00E0001

Maybe this difference is causing the problem with Q-Dir
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/02/2014 :  15:48:58  Show Profile  Visit Rob's Homepage
I have no idea, once again I've looked at it with Spy++, nothing makes sense with the way Q-Dir handles messages, the entire window hierarchy is messy as well.

If I open Notepad and watch messages, I press ALT+Left on the keyboard, then I use acSendKeys("%{LEFT}") and the messages are 100% identical.

I don't know what it is about Q-Dir, but the input handling is very odd, I wish I could figure out a way to make it work, but it's simply an exception case, I use sendkeys all day everyday across a variety of applications, and other than Q-Dir and possible Photoshop CC (which I haven't been able to confirm), applications accept the input. It seems Q-Dir is handling input in a very non-standard fashion and without access to the source code, there's no way for me to figure out what it's doing.

I wish I had a solution, but even directly posting message doesn't seem to work, though the complicated window hierarchy makes it extremely difficult to determine where the message should even be delivered.
Go to Top of Page

dele

4 Posts

Posted - 10/02/2017 :  06:37:37  Show Profile
Three and a half year later i found a workaround.
Autoit only sends keydown and keyup without this "WM_CHAR 0x8" in between and Q-Dir behaves as desired. So i wrote a very small autoit script just sending backspace and compiled it to an exe called "Q-Dir_backspace.exe".
In Strokesplus i call that small exe and it works fine for me.

May be you can have a look to how StrokesPlus is sending Backspace:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000