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

Unable to use XButton as Hotkey #25

Open
displayerror opened this issue Feb 2, 2015 · 5 comments
Open

Unable to use XButton as Hotkey #25

displayerror opened this issue Feb 2, 2015 · 5 comments

Comments

@displayerror
Copy link

Hello,
Firstly, thanks for creating AltDrag, it's possibly the greatest tool I've ever used on a computer! :)

Okay onto the issue,
I'm unable to set VK_XBUTTON as an additional hotkey. In the options, I've set Mouse 4/5 to Nothing.
I've added VK_XBUTTON1 (0x05) (and VK_XBUTTON2 (0x06) just to test it) to the .ini to supplement the existing L_Win key that I use.
It reads: Hotkeys=5B 05 06
Adding standard keyboard keys however, does work.

Alright, thanks for your time!

@stefansundin
Copy link
Owner

Hi!

Unfortunately you can't set mouse buttons as hotkeys as of yet. The list is only checked in the keyboard hook. I'll probably rework this in the future.

Sorry!

@displayerror
Copy link
Author

Aw that's a shame! I was really hoping to consolidate all the AltDrag functions to just one hand location. Unfortunately my mouse drivers/software don't allow for rebinding.

Well thank you for considering it and I really look forward to future updates! :)

@RamonUnch
Copy link

@displayerror
I am Working on this feature, so that windows can be manupulated with the mouse only.
I will post a build when it will be ready.
In the meantime you can check the latest version of AltDrag here.
https://github.com/RamonUnch/AltDrag/releases

@eugenesvk
Copy link

Aw that's a shame! I was really hoping to consolidate all the AltDrag functions to just one hand location.

I know it's been a while since your comment, but until @RamonUnch has implemented this feature, just in case someone else might find this: you can already achieve single-hand window management if you combine Autohotkey with AltDarg
I've remapped one of my mouse keys (vk05 mouse key code in Autohotkey) to Left Winkey on hold and can use (hold)Side Mouse key + (hold)Left Mouse key to e.g. move a window (left mouse key is assigned to Move window in Altdrag), here is a snippet from autohotkey v2

;🖰G6 ⟶ left winkey when down
vk05::SendInput '{LWin Down}'
;🖰G6 ⟶ 🖰G6 when up
vk05 Up::{
  if (A_PriorKey="LControl") { ; should be vk9A vk9B (LMB/RMB)?, not sure why "LControl", maybe AltDrag passes it?
    SendInput '{LWin Up}'
  } else {
    SendInput '{LWin Up}{vk05 Down}{vk05 Up}'
  }
}

@RamonUnch
Copy link

Here is a test build.
RamonUnch/AltSnap#28

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

No branches or pull requests

4 participants