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

Perform an action from the command line #285

Closed
RamonUnch opened this issue Aug 25, 2022 · 2 comments · Fixed by #286
Closed

Perform an action from the command line #285

RamonUnch opened this issue Aug 25, 2022 · 2 comments · Fixed by #286
Labels
enhancement New feature or request

Comments

@RamonUnch
Copy link
Owner

This is actually something that is quite simple to do.
You can Invoke AltSnap from the command line to perform an action on the focused window or at the current point location.
This is easily done with the -a parameter:
AltSnap.exe -afAlwaysOnTop Will Toggle the Always on top flag for the foreground window
AltSnap.exe -apAlwaysOnTop Will Toggle the Always on top flag for the pointed window.

It will only work if AltSnap is already running and if you did not enable the multiple instance mode.
This may become handy if you need to better interface AltSnap with other accessibility software like ahk, external input/controller devices etc.

AltSnap1.57test3_i386.zip
AltSnap1.57test3_x64.zip

@Ichisich
Copy link

Works great:
grafik

@RamonUnch RamonUnch added the enhancement New feature or request label Aug 25, 2022
brian6932 added a commit to brian6932/Extras that referenced this issue Aug 27, 2022
AltSnap is receiving a feature where it can be invoked from a shell with to perform actions with args, so it only makes sense to add a bin shim.
RamonUnch/AltSnap#285
issaclin32 pushed a commit to ScoopInstaller/Extras that referenced this issue Aug 27, 2022
AltSnap is receiving a feature where it can be invoked from a shell with to perform actions with args, so it only makes sense to add a bin shim.
RamonUnch/AltSnap#285
@grandoth
Copy link

Non-valued added comment: This reminds me of a time when I didn't know better. Almost 20 years ago now, I used Autohotkey to pickup hotkeys to trigger NirCmd command line actions which AltSnap now allows 😄 (different use case). That was instead of having Autohotkey actually move windows around which I did later. An evolution of tools eventually led me from library of shortcuts to make grids for windows and move them around to AltDrag/AltSnap and FancyZones. Thanks for your work.

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.

3 participants