How to focus an Edit control and a Listview simultaneously?

Get help with using AutoHotkey and its commands and hotkeys
valuex
Posts: 3
Joined: 01 Nov 2014, 08:17

How to focus an Edit control and a Listview simultaneously?

20 Jul 2018, 22:48

I am trying to build a launcher using AHK.
And hope to implement the feature that AlmRUN has, that is "Focus Edit control and Listview simultaneously".
In detail, it means:
1) have a caret in the Edit control at any time (green circle), so that one can input string directly, no need to focus the Edit control by pressing shortcut stroke
2) always focus on the 1st row in the Listview (red arrow), so that one can use Enter to activate the corresponding command directly, no need to press {Tab} and press arrow key to select the item.
Here is what AlmRun looks like.
Image
Attachments
Altrun.png
Altrun.png (30.06 KiB) Viewed 342 times
User avatar
Frosti
Posts: 244
Joined: 27 Oct 2017, 14:30
GitHub: Ixiko

Re: How to focus an Edit control and a Listview simultaneously?

21 Jul 2018, 04:09

I think you you want something like incremental search? I'am writing this on my Ipad so I can't give you an example. There are some examples in this forum.
toralf
Posts: 607
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: How to focus an Edit control and a Listview simultaneously?

21 Jul 2018, 06:50

The focus can only be set to one control.
What you want is that the edit control has the focus and the listview has the first item selected. A button can be the default button. The default button catches the enter key.
ciao
toralf

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Chunjee, hasantr and 159 guests