-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Feature] Executable to show the menu #276
Comments
@donaldaken That's a great workaround! In the past I've thought about an argument '-show', but in a completely different context. I figured you could use the argument to open the STM right after the start. But the way you describe it would actually be perfect, we can do exactly the same. If a process SystemTrayMenu.exe is already running, then we send the hotkey and exit. So basically exactly what your hotkey script does. Currently, all other SystemTrayMenu.exe processes are terminated by default when starting. We should definitely implement that. I'm just thinking about how to make it accessible to even more users. Maybe something like a button in the options, which creates the shortcut with the argument '-show' in the taskbar or something similar. Tag at least as FAQ |
If you're trying to make the feature more accessible, I recommend showing the menu if SystemTrayMenu.exe is run when it is already running. I see no benefit for the user with the current behavior of terminating the other process. But I see a benefit for the user with a new behavior to show the menu. Of course, I say this without knowing how difficult it is to make that modification, i.e. detecting it's already running. |
yes thank you for the hint! So in case other instance of STM already running we will send hotkey and close either 1. with argument or 2. as default (then maybe old behavior as argument -k -killOtherInstances) e.g. when I am programming and just starting a new version, it is very useful when it terminates the others, therefore i can then set this new argument -k |
BTW killOtherInstances is causing wrong crash statistic in MS Store so this is one more reason to make option 2. as default |
for all who try this workaround or want to have it up to the next version as standard, the script is: works nice! There is a side effect of this. If the menu is open and you click on the taskbar item, you expect the menu to close, but then it opens again. Another side effect is that it takes about 50 ms until the click on the taskbar item triggers the hotkey, this is due to windows not to autohotkey and would therefore also be a problem for us because we want maximum speed. So we definitely want to continue to have 'Show in Taskbar' as the default. Also because of the point that the user can more easily execute 'Pin to Taskbar' the first time and then he can remove 'Show in Taskbar' in options and it would then be implemented as described 'option 2. as default ' |
we tried using send receive, see demo project here: the orignal idea send the hotkey is a bit tricky because we need kind of converter from our hotkeystring to the sendkey format, see e.g. here |
ok, now works fine, version 1.2.0.9. (There are 2 hotkeys with which it not works, thats 'ALT + A' and 'ALT + SHIFT + A'. seems to be a issue in InputSimulator, but all others are fine.) @donaldaken |
we changed that new behavior only with arg -h or -hotkey FYI @donaldaken now closed again, we will release in a few days |
1>D:\Seafile\Markus\C#Projects\systemtraymenu\SystemTrayMenu.csproj : warning NU1701: Package 'InputSimulator 1.0.4' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0-windows10.0.22000'. This package may not be fully compatible with your project. |
changed to |
I would like a Windows executable that will show the menu. I want to create a Windows shortcut and Pin to taskbar or Pin to Start. I would tap the icon on the taskbar to display the menu.
An option is to add a parameter to the SystemTrayMenu.exe command line that would show the menu, rather than restart SystemTrayMenu. For example,
My frequently used apps are pinned to the taskbar. I will use SystemTrayMenu to launch occasionally used apps - curated and categorized. I won't use the menu enough to turn on "Show in taskbar". "Show in taskbar" has some undesirable side-effects: always in the Alt-Tab and Win-Tab lists; menu appears when switching virtual desktops and other times. I generally like tapping an icon on a touchscreen rather than clicking with the trackpad or hitting a hotkey. An icon on the taskbar is twice the size as the icon in the tray - larger is better for tapping on a touchscreen.
As a workaround, I created an autohotkey script that simply sends the Ctrl-Win hotkey to trigger the menu. I created a shortcut, and pinned it to the taskbar. I tap the taskbar to open the menu. I figure there are others who would also want this feature.
The text was updated successfully, but these errors were encountered: