geekhack

geekhack Community => Other Geeky Stuff => Topic started by: minho on Fri, 08 August 2014, 16:35:01

Title: Enable Ctrl+click on AHK?
Post by: minho on Fri, 08 August 2014, 16:35:01
I recently got AHK to remap my keys to an HHKB layout. I mostly just wanted to swap capslock and control, but I can't figure out two things:

1) How to enable ctrl click. When I ctrl click on a link with the regular control, it opens up the link in a new tab. With the capslock ctrl, nothing happens.

2) How to retain ability to enable capslock. I put this:

+Capslock::Capslock

in the script, but it doesn't seem to work - shift+capslock doesn't enable capslock.

Any advice?

Thanks ;D
Title: Re: Enable Ctrl+click on AHK?
Post by: Smasher816 on Fri, 08 August 2014, 23:37:32
The HHKB way would be using FN (right shift, I guess) plus Tab to toggle caps lock. Not shift+caps.

It might be worth a shot just because of how windows handles the capslock key and stuff. I'm not sure whats wrong with your setup. Maybe you should ask an AHK expert, i'v just set it up on my laptop to make me feel more at home.
Title: Re: Enable Ctrl+click on AHK?
Post by: Melvang on Sat, 09 August 2014, 03:17:54
Not sure which browser you are using but for chrome middle click opens in a new tab for me.
Title: Re: Enable Ctrl+click on AHK?
Post by: Smasher816 on Sat, 09 August 2014, 14:01:38
Not sure which browser you are using but for chrome middle click opens in a new tab for me.

Also works in firefox. Not sure about IE, but I think it should also. You can also middle mouse click on a tab to close it.