AutoHotKey: MacOS style keyboard modifier keys on Windows?











up vote
0
down vote

favorite












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



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.



Edit:



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


Currently only LCtrl & Tab::AltTab works, and the #If conditionals seem to be ignored. Any advice on why that is and how to fix it?



Edit:



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.










share|improve this question




















  • 1




    I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
    – Tetsujin
    Nov 21 at 9:33






  • 1




    It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
    – Ryan Hart
    Nov 21 at 11:35










  • Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
    – Ryan Hart
    Nov 21 at 11:38










  • If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
    – harrymc
    Nov 21 at 11:39










  • Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
    – Ryan Hart
    Nov 21 at 13:04















up vote
0
down vote

favorite












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



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.



Edit:



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


Currently only LCtrl & Tab::AltTab works, and the #If conditionals seem to be ignored. Any advice on why that is and how to fix it?



Edit:



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.










share|improve this question




















  • 1




    I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
    – Tetsujin
    Nov 21 at 9:33






  • 1




    It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
    – Ryan Hart
    Nov 21 at 11:35










  • Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
    – Ryan Hart
    Nov 21 at 11:38










  • If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
    – harrymc
    Nov 21 at 11:39










  • Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
    – Ryan Hart
    Nov 21 at 13:04













up vote
0
down vote

favorite









up vote
0
down vote

favorite











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



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.



Edit:



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


Currently only LCtrl & Tab::AltTab works, and the #If conditionals seem to be ignored. Any advice on why that is and how to fix it?



Edit:



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.










share|improve this question















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



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.



Edit:



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


Currently only LCtrl & Tab::AltTab works, and the #If conditionals seem to be ignored. Any advice on why that is and how to fix it?



Edit:



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.







windows windows-10 keyboard keyboard-shortcuts autohotkey






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 13:36

























asked Nov 21 at 9:30









Ryan Hart

11




11








  • 1




    I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
    – Tetsujin
    Nov 21 at 9:33






  • 1




    It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
    – Ryan Hart
    Nov 21 at 11:35










  • Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
    – Ryan Hart
    Nov 21 at 11:38










  • If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
    – harrymc
    Nov 21 at 11:39










  • Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
    – Ryan Hart
    Nov 21 at 13:04














  • 1




    I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
    – Tetsujin
    Nov 21 at 9:33






  • 1




    It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
    – Ryan Hart
    Nov 21 at 11:35










  • Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
    – Ryan Hart
    Nov 21 at 11:38










  • If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
    – harrymc
    Nov 21 at 11:39










  • Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
    – Ryan Hart
    Nov 21 at 13:04








1




1




I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
– Tetsujin
Nov 21 at 9:33




I normally post this for people who just moved from Win to Mac, but the essence is the same... Get used to it. Don't fight it, just learn the paradigm shift. It will be much easier in the long run.
– Tetsujin
Nov 21 at 9:33




1




1




It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
– Ryan Hart
Nov 21 at 11:35




It's not about getting used to it. The position of the Command key is ergonomically superior to using Ctrl for 99% of keyboard shortcuts. Why should I make my hands do a dance when I can just use the keys that my fingers/thumbs already rest on?
– Ryan Hart
Nov 21 at 11:35












Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
– Ryan Hart
Nov 21 at 11:38




Besides, I just came back to this page after getting an idea. I can use SharpKeys (I've used it on my gaming PC) to swap Ctrl and Alt. At this point, AutoHotkey won't know the difference, and I can then just switch Alt+Tab to Ctrl+Tab.
– Ryan Hart
Nov 21 at 11:38












If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
– harrymc
Nov 21 at 11:39




If you are on Windows then use it. Don't try to make it over, because the result will only be poor. The keyboard is too tightly coupled with applications on Windows & Mac. Buy another keyboard with better ergonomy if you wish.
– harrymc
Nov 21 at 11:39












Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
– Ryan Hart
Nov 21 at 13:04




Anything is possible. And If it ain't broke, you just haven't thought of anything better yet.
– Ryan Hart
Nov 21 at 13:04















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377221%2fautohotkey-macos-style-keyboard-modifier-keys-on-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377221%2fautohotkey-macos-style-keyboard-modifier-keys-on-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

QoS: MAC-Priority for clients behind a repeater

Ивакино (Тотемский район)

Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)