RamonUnch/AltSnap

Feature Request: add action(s) to execute AHK script(s)

drivermix opened this issue · 3 comments

I think adding action(s) to call out to AHK scripts for executing all sorts of fancy stuff AHK can do would be a most interesting addition. That way AltSnap remains lean and functional for the simple things it does best while still helping extend its overall functionality with AHK integration. Drop-down action selection or .ini editing, either one would be fine.

For example, I'd like to point out that Capsicain (https://github.com/cajhin/capsicain), while being a great keyb remapper, similarly allows to outsource exotic functionality with a simple call to AHK.

Thanks for your consideration.

Could you give an example of use that cannot already be done?
AHK can already be triggered with any combo of keys or buttons and does not need AltSnap for that, so I do not see the benefit of triggering it from AltSnap.

It is already possible to call AltSanp actions from the command line so if you want an AHK script to trigger an AltSnap action it is possible. you are asking the opposite.

AHK can already be triggered with any combo of keys or buttons and does not need AltSnap for that, so I do not see the benefit of triggering it from AltSnap.

I think it would be very nice if I could add items to the action menu that can run commands. That way I could run an AHK script or anything that I want.

Right now, the alt+space action menu is the main way I manipulate windows on my computer with this program. It's extremely useful, but it can only perform actions that AltSnap natively supports. If I could extend this menu, then I wouldn't have to find increasingly creative keyboard shortcuts or macro buttons in order to trigger as many actions as I want.

A basic templating system (i.e. set some environment variables and then send it to CMD.EXE, so that %ALTSNAP_WHATEVER% expands properly) would probably be great, only question is what to send. (process ID, window ID? etc...)

there could simply be a bunch of text boxes in the altsnap config that you can put whatever CLI commands in there in relation to each gesture it can do, with variables like the handle of the window, the positions and bla bla bla you get how it can extend it's functionality without requiring too much work