Autohotkey For Mac

27.12.2020by
Autohotkey For Mac Average ratng: 3,8/5 8805 reviews
By Xah Lee. Date: . Last updated: .

News and tutorials on AI, computer vision and its applications in automating daily office tasks. In short: Robotic process automationation (RPA). Use Mac keyboard with AutoHotkey under Windows. This AutoHotkey configuration file makes usual keyboard shortcuts work with an Apple keyboard on Windows. It has been testet with a german keyboard layout, but should work under different layouts as well. Chrisfcarroll / AutoHotKey for a Mac User with PC keyboard on Windows.ahk A Pair of AutoHotKey Scripts for they who, being Mac Users, yet still insist on using Windows. One for an Apple keyboard, one for a PC keyboard. Also some arrange-windows-on-a-big-screen keys. Thanks for watching, don't forget to rate comment and subscribe:)! LINKS AHKDictionary: Hotkey notations: http:/.

This page is a collection of useful AutoHotkey scripts.

[see AutoHotkey Tutorial]

🅳🅾🆆🅽🅻🅾🅰🅳 Robot. Download AutoHotkey - Automation and Hotkeys for free. Automate almost anything by sending keystrokes & mouse clicks (macros). Create hotkeys for keyboard, mouse, joystick, & handheld remote controls.

Swap Modifier Keys

[see AutoHotkey Key Syntax]

Launch Browser, Switch to Browser

Suppose you want a hotkey that launches a browser, but if it is already running, just switch to it.

How to find window name or app name?

To find out what is the window's “ahk_class”, right click on the AHK icon and chose “Window Spy”, then click on a window you want.

for Mac or Linux, see:How to Set Key to Switch to Browser

Switch Apps

It is useful to have a single button to switch to last window.

Alt+Tab is no good because it strain your hands, and you have to take a second to chose.

Single Key for Cut, Copy, Paste

Disable Caps Lock, Num Lock, ScrLk

[see AutoHotkey Key Syntax]

The ▤Menu key is actually very useful. See: Microsoft Keyboard Menu Key.

Disable Windows Logo Key

Disable Win Key Start Menu Behavior

Disable ❖Window key, but don't disable ❖Window+key combination.

Disable Win+key Combination

Note: the ❖Window+l (lock computer) cannot be disabled.

Disable Win Key Completely

Disable F1 Help

Instead of disable keys, it's better to set them to do something useful, such as switching app/window/tab, or copy cut paste. National cash register serial numbers guide.

Empty Trash (Recycle Bin), Open Trash

open recycle bin:

Changing Sound Level

Many keyboards have special buttons to control sound level, but they are a pain to use. Because, the button change volume by a tiny amount. You have to press it 5 or 10 times. If you hold it, for a second nothing happens, then all of a sudden it became too loud.

The following script changes volume by 10%, using Ctrl and the + and - on the numberpad.

Change Sound Level with Multimedia Key

If you have a multimedia keyboard with special keys such asMicrosoft Ergonomic Keyboard, and want increase sound volume by one of its special button, here's what you can do.

Create a file of the following content and save it as increase_sound.ahk:

Then, use IntelliTypeto assign the keyboard's special button to launch the script.

Close Tab in Browser

Close Current Window or Tab

Windows has many different keyboard shortcuts to close the window. For example, Alt+F4 closes the application, Ctrl+F4 or Ctrl+w closes current tab or window in browsers, Escape usually closes dialog boxes. (See: Windows Keyboard Shortcuts)All these can be thought of close the current visible box. You can define a easy key, so that it'll close the current browser tab, or window, or application.

For

The code checks what application is the current window, by the IfWinActive lines. When you want a hotkey to check what is the current window or if it exists, you can use“IfWinActive” or “IfWinExist”.

Toggle Window Size

Hide/Minimize Window

Note: in Microsoft Windows 7, you can maximize by ❖Window+ and restore by ❖Window+.[see Windows Keyboard Shortcuts]

Temporarily Disable AutoHotkey

Autohotkey Macro For Games

You have many personal hotkeys. In some situations, you want thesehotkeys to be off temporarily. You can create a hotkeyX, sothat it'll disable all your hotkeys, and press hotkeyX again to turn allyour hotkeys back on. Here's a example:

When hotkeys are suspended, the AutoHotkey icon in your system notification area changes to S.

Swap Middle/Right Mouse Buttons

[see Why Swap Mouse Right Button and Middle Button]

If you have a question, put $5 at patreon and message me.

What is the difference between the AutoHotkey and AutoIT? Both are similar Windows automation tools. Historically AutoHotkey was even a clone (“fork”) of AutoIT. It was created after the AutoIT team refused to add better keyboard shortcut support (“Hotkeys”). But the AutoIT developers did not like that AHK copied code from AutoIT. To avoid this, they made AutoIT closed source. From this point on the tools diverged in their feature set, syntax and user community.

AutoHotKey (AHK) vs AutoIT

The table below compares the key features of these two well-known Windows automation tools.

FeatureAutoHotKeyAutoITKantu
Supported PlatformsWin onlyWin onlyWin, Mac, Linux
Open-Sourceyesnoyes
Security RatingVery GoodGoodVery Good
OpennessVery highVery highVery high
Desktop Automation
Image RecognitionOnly very basicOnly very basicYes
Text Recognition (OCR)NoNoYes
Keyboard ShortcutsYes (best)YesYes (via other extensions)
Web Automation
Supported BrowserIEIEChrome, Firefox
Browser RecorderNoNoYes
Web ScrapingNoNoYes
Selenium IDE compatibleNoNoYes
Scripting
Script languageAHK ScriptAutoIt Script (Basic)Many (API)
Advanced SchedulingWith external toolsWith external toolsWith external tools
COM-automation supportYesYes (best)No, but command line API

As third option the table includes Kantu, a computer-vision and AI powered lightweight RPA tool. It works visually and its supports Mac and Linux, too. Some use it as “AutoHotKey for Mac” and as “AutoHotKey for Linux”, even so technicallyit is quite different.

Security

AutoIT is a trustworthy project. But their code is closed source.So you must trust the developers that they do not send of critical corporate information to outsideservers. By contrast, the AHK and Kantu core is open-source, so you can easily check that no information is send anywhere. We require a software to be Open-Source to be eligible for a very good security rating.

Desktop Automation

Desktop automation is sometimes also called “RDA” (Robotic Desktop Automation). This sectionrates the usefulness of the tool to automate tasks on the users desktop. Note that UIPath and Blue Prism can only automate tasks on a Windows desktop, whereas Kantu works on Mac and Linux desktops as well.

Web Automation

Web automation means Browser Automation. It is the ability to automate tasks directly in the web browser. Typical tasks include form filling, data up- and download and web scraping, the extraction from information from websites. For web automation Kantu brings two key advantages to the table. First it has easy-to-learn Selenium-compatible commands. And second, it supports modern browsers. AutoIT and AHK only support the old Internet Explorer (IE) browser. That is a problem, as many modern websites no longer work in IE.

Scripting

All automation tools have one thing in common: Unless the task or test to automate is very basic, you must expect to have to “script” or “program” part of the solution. AutoIT and AHK are by design scripting languages. The app was no real user interface except an editor. Kantu exposes a command line API that allows you to use it with any programming or scripting language, for example (in alphabetic order) C#, Java, Node.JS, PowerShell, Python, VB.NET, VBS and to combine it with other tools like AutoHotKey.

AutoHotkey is very popular in the gaming community. So if your goal is to automate games, AHK is better than AutoIT because of the community.

AutoIT and AHK IDE

Short answer: There is no IDE (Integrated Development Environment) for AHK and AutoIT. You can create these scripts any text editor:

Longer answer: AutoIT and AHK are scripting languages and the IDE is a essentially an editor. This is the same as you find it in more famous, proper scripting languages like PowerShell or Python.

Autohotkey For Mac Os X

But with AHK you can also use AutoGUI. It is an IDE for AutoHotkey which combines a script editor with a GUI designer, debugger and tools.

Same for AutoIT. The IDE is an editor.

The Kantu IDE can also be described as editor. Its design is similar to the Selenium IDE. Kantu focuses on computer-vision and AI powered automation. For everything else, Kantu can be combined with any scripting or programming language like Powershell or Python.

A key differences between Kantu and AutoIT/AHK is that Kantu can not only do desktop automation but has good web automation support, too. Thus if you need to automate a task inside a web browser, the choice is clear, use Kantu.

What about AutoIT/AHK for Mac and Linux?

AHK and AutoIT are 100% Windows tools. There is no Mac or Linux version available or planned. So if you want your automation to work on these popular platforms, Kantu is your best (and only) option.

RPA Market Overview

For more RPA Market Overview blog posts please see

  • AutoHotKey vs AutoIT (this post)
Comments are closed.