

For step 3, I found a solution that measure how long was the Win key pressed.

But I want a more precise way like checking if any other key was pressed. The above script is an example of a multi-command line script and that is why we have put the commands beneath the hotkey definition. This improves readability and makes it easier to modify the scripts later, especially for larger scripts.

The Return command will exit the script (you will understand its real importance later). Let’s see another variation of the above script: In single-line scripts, using the return command was unnecessary as exit was implied. Now when you use this script, the Notepad will open maximized on your screen, while the google browser window will be minimized.Use SharpKeys app to swap modifier keys. LControl becomes Winkey Winkey becomes LAlt LAlt becomes LControl This is not typical Mac Control-Alt-Command layout, but don't worry, we will make shortcuts work in the same manner your fingers are used to. The reason why we can't simply swap Win & Alt is because IntelliJ IDEA requires a lot of shortcuts with 'Command' key (which would be Windows key in our case), and it's impossible to make them work well. So we stick to more traditional 'Control'-shortcuts on the OS level. Mac Keyboard Shortcuts for Windows 10 (AutoHotKey) This is an AutoHotKey script designed to make keyboard shortcuts in Windows 10 more like MacOS. #AUTOHOTKEY MAC COMMAND KEY FOR WINDOWS 10#īut, again, don't worry, in the end shortcuts physically will be the same os on Mac OS X. It is intended to make life easier for people who frequently jump between Windows and MacOS, and who prefer Mac-style keyboard shortcuts. Unfortunately, there is no native way to change the keyboard shortcuts for Windows, unlike Mac OS devices you cannot remap keys for different settings.

Use AutoHotkey script 'OS X keyboard for Windows' to remap basic shortcuts (see 'OS X keyboard for Windows' AutoHotkey script). Remap the surface pen button to launch whatever program you want in the script you just need to set the file location to whatever you want (as an example I currently have it loading up the desktop version of OneNote, but you could instead set it to Photoshop, Illustrator, etc. How to Remap Any Keyboard Shortcut in Mac OS X.ĪutoHotkey script to remap some Mac shortcuts on Windows to make Windows more usable - AutoHotkeyMacMapping.ahk. #AUTOHOTKEY MAC COMMAND KEY FOR WINDOWS 10#Ī keyboard shortcut on Windows using our favorite Windows scripting tool, AutoHotkey.
