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

Allow sending arbitrary vKey sequences #493

Closed
RamonUnch opened this issue Nov 18, 2023 · 1 comment · Fixed by #492
Closed

Allow sending arbitrary vKey sequences #493

RamonUnch opened this issue Nov 18, 2023 · 1 comment · Fixed by #492
Labels
enhancement New feature or request WIP Work in progress

Comments

@RamonUnch
Copy link
Owner

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 RamonUnch added enhancement New feature or request WIP Work in progress labels Nov 18, 2023
@RamonUnch
Copy link
Owner Author

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

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

Successfully merging a pull request may close this issue.

1 participant