RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.08k stars 66 forks source link

Allow sending arbitrary vKey sequences #493

Closed RamonUnch closed 10 months ago

RamonUnch commented 10 months ago

Here I come with a new test build that should fix #422, @icyhoty2k and #205 , @hammarhaus

You have new actions: Shrt0 to Shrt9 and ShrtA to ShrtY (ini file only and it will stay this way). then you must define this shortcut in in the Input section of the ini file. It consists in a sequence of virtual-key-codes each followed by (0) up or down(1) flag:

example:

[Input]
MMB=Shrt0
Shrt0=A2.1 57.1 57.0 A2.0
; Ctrl+W ie. Ctrl.down W.down W.up Ctrl.up

You can use A2.1 for Ctrl.down A2.0 for Ctrl.up you can actually also a space or a coma instead of the dot to separate values. You can also use A2.u and A2.d for Up and down (this is even clearer) Finally you can use A2.2 as a shortcut to do both Ctrl.down followed by Ctrl.up (equivalent to A2.d A2.u)

If you want to use Alt+Click or WinKey+Click to trigger a shortcut then you must first push UP the keys that are pressed: ie2:

; Ctrl+W usable on Alt+click 
Shrt1=FF.2 12.u A2.d 57.2 A2.u
; FF.2 : Sends FF (to avoid menu activation), 
; 12.u: release the Alt key
; A2.d: Press Ctrl
; 57.2: Press then release the W key
; A2.u: Release the Ctrl key

ie3:

[Input]
MB4=Shrt2
MB5=Shrt3

Shrt2=B0.2
; VK_MEDIA_NEXT_TRACK
Shrt3=B1.2
; VK_MEDIA_PREV_TRACK

Max number of keys is 254.

Test builds (WIP): AltSnap1.62test15_i386.zip AltSnap1.62test15_x64.zip

RamonUnch commented 10 months ago

This build allow also setting Wheel Up/Down as ShrtX If you set Scroll=ShrtX then Scroll UP will send ShrtX and Wheel down will sedn Shrt(X+1) if defined.

AltSnap1.64test21_x64.zip AltSnap1.64test21_i386.zip