Skip to content
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 request] Option to customize action menu items #240

Closed
rp1231 opened this issue Jul 29, 2022 · 8 comments · Fixed by #245
Closed

[Feature request] Option to customize action menu items #240

rp1231 opened this issue Jul 29, 2022 · 8 comments · Fixed by #245
Labels
enhancement New feature or request

Comments

@rp1231
Copy link

rp1231 commented Jul 29, 2022

It would be nice to be able to customize the action menu options.
Right now the list is very long and I just use a couple of options.
It would be better from a user point of view to access the most used options.
Instead of searching for the option you want(especially if it's lower on the list)

Maybe this can be in the advanced options through the .ini file for power users.
So you can rearrange and keep only the options you need.

@RamonUnch
Copy link
Owner

Makes sense indeed.
Keep in mind however that you can use the accelerators key in the menu (t, for topmost, b for borderless etc...

@RamonUnch RamonUnch added the enhancement New feature or request label Jul 30, 2022
@RamonUnch
Copy link
Owner

Here is a build that allows custom Action menu with the ACMenuItems value in the [Advanced] section of the .ini file.

In the [Advanced] section of the .ini file.

ACMenuItems=-1
; Menu items that will be displayed in the action menu (bit-mask).
; Default is -1 for all menu items.
; If you want only a selection of the menu items, pick them up in the list
; below, sum up the associated numbers and assign the value to `ACMenuItems`
; 1     Toggle Always on top
; 2     Toggle Borderless
; 4     Center window on screen
; 8     Roll/Unroll window
; 16    Lower Window
; 32    Maximize vertically
; 64    Minimize other windows
; 128   Snap To side/corner
; 256   ------------------
; 512   Maximize window
; 1024  Minimize window
; 2048  Close window
; 4096  ----------------
; 8192  Kill program
; 16384 -----------------
; 32768 Nothing
; Example: 32768+1+2+8=32779 Nothing+Topmost+Borderless+Roll

Even separators can be configured like this, Of course if you set ACMenuItems=0 then no menu will be displayed.
AltSnap1.55test1_i386.zip
AltSnap1.55test1_x64.zip

@rp1231
Copy link
Author

rp1231 commented Aug 2, 2022

Thanks,
This works great!

@rp1231 rp1231 closed this as completed Aug 2, 2022
@rp1231
Copy link
Author

rp1231 commented Aug 2, 2022

AltSnap_hQLBELvHnb
It breaks the second option(kill process) though.
I tried this option for the first time on the new build so I don't know if it was working before or not.
But it doesn't add the kill option to the action menu.

Edit:
I'm not sure how this option is supposed to work.....
Is it supposed to kill the altsnap process or the process of the active window?

@rp1231 rp1231 reopened this Aug 2, 2022
@RamonUnch
Copy link
Owner

To see the kill option in the action menu you need to booth check this and add 8192 to the value if not already done.

@rp1231
Copy link
Author

rp1231 commented Aug 2, 2022

Aah ok,
I thought the option would do it.

@rp1231 rp1231 closed this as completed Aug 2, 2022
@RamonUnch
Copy link
Owner

I'm not sure how this option is supposed to work.....
Is it supposed to kill the altsnap process or the process of the active window?

It will kill the process of the pointed window without further ceremony. It is quite aggressive but can be useful sometime.
It will never kill processes that are in the Processes not to be paused or killed: blacklist

@rp1231
Copy link
Author

rp1231 commented Aug 2, 2022

Aah I see.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants