I'm a new AutoHotKey user, and I've been Googling for the past couple hours for existing examples of what I'm trying to do, but nothing I've found works quite what I'm going for.
I just switched from MacOS to Windows 10 on a Surface Pro 6, and I'm trying to change the Windows modifier keys to act more like the Mac keyboard layout, where instead of Ctrl+[anything] it's Command+[anything]. On the keyboard I'm using, the current Alt key is in the place where the Command key would have been on the Mac, next to the spacebar. I want to use this Alt key for all Ctrl+[fill in the blank] shortcuts system-wide swapping Alt and Ctrl keys.
The tricky part is this. I want to keep Alt+Tab, Shift+Alt+Tab, Ctrl+Tab, and Shift+Ctrl+Tab exactly as they were, unchanged.
This is as close as I've been able to get, but it still has problems. If I keep the first 2 lines, I get the Ctrl and Alt key swapping, but with the 3 line, it seems to cancel out the first line
Alt::Ctrl Ctrl::Alt LAlt & Tab::AltTab
I'm not usually one to post questions online. I prefer searching for other people's answered questions, but no luck so far. Any help would be appreciated.
Ok, so I've got a mostly complete solution for myself. I used SharpKeys to remap swap Left Control and Left Alt.
After that, all I need to do is swap Ctrl+Tab and Alt+Tab functionality using AutoHotKey. I mainly care about implementing
AltTab as I'd rarely use
ShiftAltTab. I also rarely use Ctrl+Tab to cycle through tabs either. So my incomplete solution is this:
#If GetKeyState("Shift", "P") LCtrl & Tab::ShiftAltTab #If !(GetKeyState("Shift", "P")) LCtrl & Tab::AltTab
LCtrl & Tab::AltTab works, and the
#If conditionals seem to be ignored. Any advice on why that is and how to fix it?
Now that I've been editing this a couple times. I see that I was using
LAlt & Tab::AltTab instead of
LCtrl & Tab::AltTab. That was one of the problems.