Cursor focus NOT in search field after launching Chrome

Discussion, questions and support.
Post Reply
repli
Posts: 4
Joined: Mar 30th, ’25, 19:32

Post by repli » Jul 8th, ’25, 15:35

I have tried to launch chrome by a mouse gesture through "run", by "run/explorer.exe <path> chrome.exe" and by some other commands. All of them end up with the same result: Chrome launches fine, but the corsor focus is NOT on the search field, so when entering text, nothing happens / cursor focus seems to be somewhere else. Thus, I have to click the search field every time after launching Chrome.

When I launch Chrome regularly, eg through task bar or via application menu, the search field is in focus.

FastKeys seems to set the focus elsewhere.. how can I fix this?
(I'm on Win11x64, and using gestures triggered via RButton hold)

BR, Reinhard
User avatar
Marko
Posts: 1906
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jul 9th, ’25, 21:48

Try

Code: Select all

%comspec% /c "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk"
(Type: Run)
repli
Posts: 4
Joined: Mar 30th, ’25, 19:32

Post by repli » Jul 12th, ’25, 09:22

whoa, this did the trick - thank you very much :). To better understand the background: Does it mean you need to call all Win apps/programs from their app references in the start menu rather than directly by their .exe filename to ensure mouse focus will be as usual?
repli
Posts: 4
Joined: Mar 30th, ’25, 19:32

Post by repli » Jul 12th, ’25, 09:24

plus, there's a little nuisance happening when using your solution: Since calling Chrome through the cmd command interpreter, there is always a black cmd window popping up before opening Chrome, and it's shown again when closing Chrome, auto-terminating itself shortly after (due to /c command modifier, I assume). Can this be completely suppressed? When calling multiple instances of Chrome, it starts getting confusing finding the black window moving to foreground etc..

Creationg a batch file with @echo off as first line might be an option, though tedious to create batch files for each and every shortcut. Is there no way of keeping the mouse focus 'normal' in direct Fastkey calls to apps/.exe program files? Strokesplus or others did not have this mouse cursor focus issue, so I think it should be possible to implement..?
User avatar
Marko
Posts: 1906
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jul 14th, ’25, 18:58

I tried and it works by running it from Text Expander, Start menu or Auto Complete modules.
Type: Run

Code: Select all

chrome.exe
Post Reply