Skip to content

Use Win key as hotkey to trigger flow #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jjw24 opened this issue Aug 20, 2021 · 20 comments · Fixed by #3262 · May be fixed by #3157
Closed

Use Win key as hotkey to trigger flow #662

jjw24 opened this issue Aug 20, 2021 · 20 comments · Fixed by #3262 · May be fixed by #3157
Assignees
Labels
enhancement New feature or request keep-fresh

Comments

@jjw24
Copy link
Member

jjw24 commented Aug 20, 2021

Using the Windows key to trigger flow, surely this can be done, just need to find the right win API library I suppose

@jjw24 jjw24 added the enhancement New feature or request label Aug 20, 2021
@pc223
Copy link
Contributor

pc223 commented Aug 20, 2021

I think many users like this feature, Flow can replace Windows search. I remember this was requested in Wox as well.

I think Autohotkey can do this

@jjw24
Copy link
Member Author

jjw24 commented Aug 21, 2021

Yeah it it's not doable due to the library we are using, we will need to find and switch to a different one.

@Megasteel32
Copy link

@jjw24 I use wox, considering switching due to an unadressed bug that renders the software useless. Regardless, I remaped the windows key to something else and wox to the windows key (or what it was) using some random key assignment software I found. was def easier than AHK

@jjw24
Copy link
Member Author

jjw24 commented Sep 17, 2021

@jjw24 I use wox, considering switching due to an unadressed bug that renders the software useless. Regardless, I remaped the windows key to something else and wox to the windows key (or what it was) using some random key assignment software I found. was def easier than AHK

Yeah definitely tools out there that can map windows key, I just want to build it natively for flow.

@taooceros
Copy link
Member

#747

@github-actions

This comment was marked as duplicate.

@mon-jai
Copy link

mon-jai commented Jan 18, 2023

I would like to have that too.

@jjw24
Copy link
Member Author

jjw24 commented Jan 19, 2023

For workarounds using other tools to get this working please see #747

@Gurrrra
Copy link

Gurrrra commented Jan 15, 2024

For workarounds using other tools to get this working please see #747

I tried this, but without all that extra since I just want to use win+space, but while Flow pops up when pressing those keys it seems that AHK keeps my ctrl button (since I use ctrl-space in Flow for the menu) is still pressed which makes it so I can't write anything unless I press ctrl first, then it works as it should.
I real fix for this would be awesome so we can set the win key as a trigger directly in Flow instead of using these janky workarounds that doesn't always work as they should :)

@jjw24
Copy link
Member Author

jjw24 commented Feb 22, 2024

There will be a new plugin coming to the store that will enable the ability to use the Win key to open and close flow, very good for those that are looking for this functionality. If the plugin hasn't shown up yet for you, you can download it from here also https://github.com/AminSallah/Flow.Launcher.Plugin.WinHotkey (pm install <url_to_the_release_zip>)

@NoPlagiarism
Copy link
Contributor

NoPlagiarism commented Mar 7, 2024

Plugin released to store and supports custom shortcuts & Portable mode

pm install Win Hotkey

@onesounds onesounds added this to WIP May 22, 2024
@onesounds onesounds moved this to Planning & Research in WIP May 22, 2024

This comment was marked as duplicate.

@jjw24
Copy link
Member Author

jjw24 commented Oct 6, 2024

Working on this.

@brimwats
Copy link

brimwats commented Dec 9, 2024

very excited to hear progress is being made! I've made multiple attempts at using flow launcher over the years but I keep ending up using fluent or powertoys because of muscle memory!

@jjw24
Copy link
Member Author

jjw24 commented Jan 1, 2025

Please help test this new change:

  • Search window can be triggered by the Windows key or up to four key combinations
  • Customer Query Hotkeys can be triggered by the Windows key or up to four key combinations
  • Other hotkeys such as for autocomplete or preview should still work as currently.

Download the portable version from the link below and copy your user data across (search Flow Launcher Userdata). I do not recommend replacing this as your main until it's available as a pre-release version because it may still contain some bugs.

https://ci.appveyor.com/api/buildjobs/xaw8qxersq9saomo/artifacts/Output%2FPackages%2FFlow-Launcher-Portable.zip

@rottakore
Copy link

rottakore commented Feb 15, 2025

DO NOT USE AHK to add this feature. AHK is detected by some anti-cheat systems as a cheat. Battlefield and The Finals are good examples. It even flagged the Win HotKey plugin from the Flow Launcher plugin store as a cheat when I used it. Because of this, I’m having to use ATNSoft Key Remapper software to achieve this functionality.

@TheBestPessimist
Copy link
Contributor

Maybe report this issue to those games via support tickets. AHK is most certainly a very useful tool. Heck, I choose to not play games which complain that I use AHK, instead of close AHK. It's that's useful for me.

@jjw24
Copy link
Member Author

jjw24 commented Feb 16, 2025

DO NOT USE AHK to add this feature. AHK is detected by some anti-cheat systems as a cheat. Battlefield and The Finals are good examples. It even flagged the Win HotKey plugin from the Flow Launcher plugin store as a cheat when I used it. Because of this, I’m having to use ATNSoft Key Remapper software to achieve this functionality.

It's not using AHK, it's using low level windows library to capture keys, but I don't know if it will get flagged as there is always a possibility being seen as key logging. Best is to test the above linked build and let me know the outcome.

@Nereithr
Copy link

Nereithr commented Feb 17, 2025

It's not using AHK, it's using low level windows library to capture keys, but I don't know if it will get flagged as there is always a possibility being seen as key logging. Best is to test the above linked build and let me know the outcome.

Working pretty great so far. Pops up instantly and standard WIN key shortcuts seem to be working,

Some feature suggestions/issues I noticed to go along with this:

  • [Issue] Modifier keys for this specific hotkey (didn't test others) don't work as expected:
    • If the modifier(s) is defined before the WIN key (i.e. the combo displays [SHIFT][WIN]) it just doesn't work
    • If the modifier(s) is defined after the WIN key, it only works when you first hold down the WIN key and then press the modifiers, the reverse doesn't work.
  • [Issue] The hotkey swapper in the settings doesn't properly update the hotkey when rapidly switching between configurations. Quickly switch between multiple hotkey configurations, set it to, say, Win. It will work 90% of the time, but sometimes it will act as if no hotkey is set and Win will open the Start menu
  • [Feature/Issue] If the Flow Launcher Key is set to WIN with no modifier then the user can no longer access the regular Start Menu via hotkey (only the search via WIN + S), which may be desirable at times, namely to access the app grid. I think either of these is better than a modifier because you don't need to contort your fingers and all start/flow functionality remains on one key:
    • Solutions 1/2: Since the Flow Launcher menu appears on key release, could add the following options:
      • Open Start Menu on doubletap (delay configurable/sane defaults/use the doubleclick delay). I like this because this is the default in the GNOME linux DE
      • Open Start Menu after holding the key (delay configurable)
    • Solution 3: Shift/CTRL/ALT modifiers to open the standard start menu

@jjw24
Copy link
Member Author

jjw24 commented Feb 22, 2025

Win key to trigger flow is now enabled in the prerelease and will be released in the upcoming v1.20.0.

Note:
Only the trigger flow hotkey is allowed to use Win key. Support for using Win key as part of a combination and using four-key combo hotkeys as mentioned in the previous comment is still WIP in PR 3157, because there are a few issues that came out of testing the PR that I need time to go through and resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request keep-fresh
Projects
No open projects
Status: Planning & Research