- Autohotkey Mouse Click Recorder Tutorial
- Autohotkey Mouse Click Recorder Software
- Ahk Mouse Click
- Autohotkey Script Right Mouse Click
- Autohotkey Mouse Recorder Script
- Autohotkey Record Mouse Clicks
- Autohotkey Mouse Buttons
Macro recorder is a product which records all the macro functions, for example, mouse clicks and the key-presses as the activities and after that you can play back those account at whatever point you need. These product are very useful as they give you to spare time, cash and endeavors.
Table of Contents
Using AutoHotKey To Automate Mouse Clicks And Keystrokes. Based on this, you can find out about all mouse and keyboard events by creating an autohotkey script as such: #InstallKeybdHook #InstallMouseHook Once you run the script, you can double click on the tray icon for that script, then go to View Key History and Script Info (Ctrl K).
- Mouse
- Keyboard
Mouse
General Buttons
LButton | The left mouse button when used with Send, but the primary mouse button when used with hotkeys. In other words, if the user has swapped the buttons via system settings, LButton:: is physically activated by clicking the right mouse button, but Send {LButton} performs the same as physically clicking the left button. To always perform a logical left click, use Click Left or Send {Click Left} . |
RButton | The right mouse button when used with Send, but the secondary mouse button when used with hotkeys. In other words, if the user has swapped the buttons via system settings, RButton:: is physically activated by clicking the left mouse button, but Send {RButton} performs the same as physically clicking the right button. To always perform a logical right click, use Click Right or Send {Click Right} . |
MButton | Middle or wheel mouse button |
Autohotkey Mouse Click Recorder Tutorial
Advanced Buttons
XButton1 | 4th mouse button. Typically performs the same function as Browser_Back. |
XButton2 | 5th mouse button. Typically performs the same function as Browser_Forward. |
Wheel
WheelDown | Turn the wheel downward (toward you). |
WheelUp | Turn the wheel upward (away from you). |
WheelLeft WheelRight | [v1.0.48+]: Scroll to the left or right. Requires Windows Vista or later. These can be used as hotkeys with some (but not all) mice which have a second wheel or support tilting the wheel to either side. In some cases, software bundled with the mouse must instead be used to control this feature. Regardless of the particular mouse, Send and Click can be used to scroll horizontally in programs which support it. |
Keyboard
Note: The names of the letter and number keys are the same as that single letter or digit. For example: b is the B key and 5 is the 5 key.
Although any single character can be used as a key name, its meaning (scan code or virtual keycode) depends on the current keyboard layout. Additionally, some special characters may need to be escaped or enclosed in braces, depending on the context. [v1.1.27+]: The letters a-z or A-Z can be used to refer to the corresponding virtual keycodes (usually vk41-vk5A) even if they are not included in the current keyboard layout.
General Keys
Autohotkey Mouse Click Recorder Software
CapsLock | CapsLock (caps lock key) Note: Windows IME may interfere with the detection and functionality of CapsLock; see CapsLock and IME for details. |
Space | Space (space bar) |
Tab | Tab (tabulator key) |
Enter | Enter |
Return | Deprecated: Use the synonym Enter instead to reduce ambiguity. |
Escape (or Esc) | Esc |
Backspace (or BS) | Backspace |
Cursor Control Keys
ScrollLock | ScrollLock (scroll lock key). While the Ctrl key is held down, the ScrollLock key produces the key code of CtrlBreak , but can be differentiated from Pause by scan code. |
Delete (or Del) | Delete |
Insert (or Ins) | Insert |
Home | Home |
End | End |
PgUp | PageUp (page up key) |
PgDn | PageDown (page down key) |
Up | ↑ (up arrow key) |
Down | ↓ (down arrow key) |
Left | ← (left arrow key) |
Right | → (right arrow key) |
Numpad Keys
Due to system behavior, the following keys seperated by a slash are identified differently depending on whether NumLock is ON or OFF. If NumLock is OFF but Shift is pressed, the system temporarily releases Shift and acts as though NumLock is ON.
Numpad0 / NumpadIns | 0 / Insert |
Numpad1 / NumpadEnd | 1 / End |
Numpad2 / NumpadDown | 2 / ↓ |
Numpad3 / NumpadPgDn | 3 / PageDown |
Numpad4 / NumpadLeft | 4 / ← |
Numpad5 / NumpadClear | 5 / typically does nothing |
Numpad6 / NumpadRight | 6 / → |
Numpad7 / NumpadHome | 7 / Home |
Numpad8 / NumpadUp | 8 / ↑ |
Numpad9 / NumpadPgUp | 9 / PageUp |
NumpadDot / NumpadDel | . / Delete |
NumLock | NumLock (number lock key). While the Ctrl key is held down, the NumLock key produces the key code of Pause , so use ^Pause in hotkeys instead of ^NumLock . |
NumpadDiv | / (division) |
NumpadMult | * (multiplication) |
NumpadAdd | + (addition) |
NumpadSub | - (subtraction) |
NumpadEnter | Enter |
Function Keys
F1 - F24 | The 12 or more function keys at the top of most keyboards. |
Modifier Keys
LWin | Left Win. Corresponds to the <# hotkey prefix. |
RWin | Right Win. Corresponds to the Note: Unlike Control/Alt/Shift, there is no generic/neutral 'Win' key because the OS does not support it. However, hotkeys with the |
Control (or Ctrl) | Control. As a hotkey (Control:: ) it fires upon release unless it has the tilde prefix. Corresponds to the ^ hotkey prefix. |
Alt | Alt. As a hotkey (Alt:: ) it fires upon release unless it has the tilde prefix. Corresponds to the ! hotkey prefix. |
Shift | Shift. As a hotkey (Shift:: ) it fires upon release unless it has the tilde prefix. Corresponds to the + hotkey prefix. |
LControl (or LCtrl) | Left Control. Corresponds to the <^ hotkey prefix. |
RControl (or RCtrl) | Right Control. Corresponds to the >^ hotkey prefix. |
LShift | Left Shift. Corresponds to the <+ hotkey prefix. |
RShift | Right Shift. Corresponds to the >+ hotkey prefix. |
LAlt | Left Alt. Corresponds to the <! hotkey prefix. |
RAlt | Right Alt. Corresponds to the Note: If your keyboard layout has AltGr instead of RAlt, you can probably use it as a hotkey prefix via |
Multimedia Keys
The function assigned to each of the keys listed below can be overridden by modifying the Windows registry. This table shows the default function of each key on most versions of Windows.
Browser_Back | Back |
Browser_Forward | Forward |
Browser_Refresh | Refresh |
Browser_Stop | Stop |
Browser_Search | Search |
Browser_Favorites | Favorites |
Browser_Home | Homepage |
Volume_Mute | Mute the volume |
Volume_Down | Lower the volume |
Volume_Up | Increase the volume |
Media_Next | Next Track |
Media_Prev | Previous Track |
Media_Stop | Stop |
Media_Play_Pause | Play/Pause |
Launch_Mail | Launch default e-mail program |
Launch_Media | Launch default media player |
Launch_App1 | Launch My Computer |
Launch_App2 | Launch Calculator |
Other Keys
AppsKey | Menu. This is the key that invokes the right-click context menu. |
PrintScreen | PrintScreen |
CtrlBreak | Ctrl+Pause or Ctrl+ScrollLock |
Pause | Pause or Ctrl+NumLock. While the Ctrl key is held down, the Pause key produces the key code of CtrlBreak and NumLock produces Pause , so use ^CtrlBreak in hotkeys instead of ^Pause . |
Break | Deprecated: Use the synonym Pause instead. |
Help | Help. This probably doesn't exist on most keyboards. It's usually not the same as F1. |
Sleep | Sleep. Note that the sleep key on some keyboards might not work with this. |
SCnnn | Specify for nnn the scan code of a key. Recognizes unusual keys not mentioned above. See Special Keys for details. |
VKnn | Specify for nn the hexadecimal virtual key code of a key. This rarely-used method also prevents certain types of hotkeys from requiring the keyboard hook. For example, the following hotkey does not use the keyboard hook, but as a side-effect it is triggered by pressing eitherHome or NumpadHome: Known limitation: VK hotkeys that are forced to use the keyboard hook, such as Warning: Only Send, GetKeyName(), GetKeyVK(), GetKeySC() and #MenuMaskKey support combining VKnn and SCnnn. [v1.1.27+]: The presence of an invalid suffix prevents VKnn from being recognized. For example, |
Joystick
Joy1 through Joy32: The buttons of the joystick. To help determine the button numbers for your joystick, use this test script. Note that hotkey prefix symbols such as ^ (control) and + (shift) are not supported (though GetKeyState can be used as a substitute). Also note that the pressing of joystick buttons always 'passes through' to the active window if that window is designed to detect the pressing of joystick buttons.
Although the following Joystick control names cannot be used as hotkeys, they can be used with GetKeyState:
JoyX, JoyY, and JoyZ: The X (horizontal), Y (vertical), and Z (altitude/depth) axes of the joystick.
JoyR: The rudder or 4th axis of the joystick.
JoyU and JoyV: The 5th and 6th axes of the joystick.
JoyPOV: The point-of-view (hat) control.
JoyName: The name of the joystick or its driver.
JoyButtons: The number of buttons supported by the joystick (not always accurate).
JoyAxes: The number of axes supported by the joystick.
JoyInfo: Provides a string consisting of zero or more of the following letters to indicate the joystick's capabilities: Z (has Z axis), R (has R axis), U (has U axis), V (has V axis), P (has POV control), D (the POV control has a limited number of discrete/distinct settings), C (the POV control is continuous/fine). Example string: ZRUVPD
Multiple Joysticks: If the computer has more than one joystick and you want to use one beyond the first, include the joystick number (max 16) in front of the control name. For example, 2joy1 is the second joystick's first button.
Note: If you have trouble getting a script to recognize your joystick, one person reported needing to specify a joystick number other than 1 even though only a single joystick was present. It is unclear how this situation arises or whether it is normal, but experimenting with the joystick number in the joystick test script can help determine if this applies to your system.
See Also:
Joystick remapping: methods of sending keystrokes and mouse clicks with a joystick.
Joystick-To-Mouse script: using a joystick as a mouse.
Hand-held Remote Controls
Respond to signals from hand-held remote controls via the WinLIRC client script.
Special Keys
If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps:
- Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting 'View->Key history' from the menu bar.
- Double-click that script's tray icon to open its main window.
- Press one of the 'mystery keys' on your keyboard.
- Select the menu item 'View->Key history'
- Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutions, see further below.
- If your key is detectable, make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159).
- To define this key as a hotkey, follow this example:
Reverse direction: To remap some other key to become a 'mystery key', follow this example:
Alternate solutions: If your key or mouse button is not detectable by the Key History screen, one of the following might help:
Reconfigure the software that came with your mouse or keyboard (sometimes accessible in the Control Panel or Start Menu) to have the 'mystery key' send some other keystroke. Such a keystroke can then be defined as a hotkey in a script. For example, if you configure a mystery key to send Control+F1, you can then indirectly make that key as a hotkey by using
^F1::
in a script.Try AHKHID. You can also try searching the forum for a keywords like
RawInput*
,USB HID
orAHKHID
.The following is a last resort and generally should be attempted only in desperation. This is because the chance of success is low and it may cause unwanted side-effects that are difficult to undo:
Disable or remove any extra software that came with your keyboard or mouse or change its driver to a more standard one such as the one built into the OS. This assumes there is such a driver for your particular keyboard or mouse and that you can live without the features provided by its custom driver and software.
CapsLock and IME
Some configurations of Windows IME (such as Japanese input with English keyboard) use CapsLock to toggle between modes. In such cases, CapsLock is suppressed by the IME and cannot be detected by AutoHotkey. However, the Alt+CapsLock, Ctrl+CapsLock and Shift+CapsLock shortcuts can be disabled with a workaround. Specifically, send a key-up to modify the state of the IME, but prevent any other effects by signalling the keyboard hook to suppress the event. The following function can be used for this purpose:
After copying the function into a script or saving it as SendSuppressedKeyUp.ahk in a function library, it can be used as follows:
There are some instances where you need to repeat an action on your computer just to complete certain tasks. To avoid wasting your time and finish your tasks easily, all you need is a mouse and keyboard recorder that can do the job for you. Such recorders are also known as repeaters that have capabilities to record an action and then repeat it over again like a loop. You may still think that it’s a hard task to do. But by using the proper programs, anyone can do it without any hassle, and a perfect example of these tools are the ones shown along this post.
I. Best mouse and keyboard recorders for Windows
Macro Toolworks
To automatically repeat a mouse action and record it, you can make use of a tool called Macro Toolworks. This is an automation program that provides its users to manage their tasks that require repetitive actions on all Windows devices. Most applications are supported by this tool which means you have a large scope of programs to work on. Aside from setting macro commands and macro triggers, this tool also supports macro recorder. This program also gives an option to share your files either by using a macro player or by generating it as an executable file.
To record your mouse along with your keyboard activity, just install and open this program, and simply click the “Record Macro” icon to trigger the recording function. Once activated, you can start with the actions that you wish to repeat. To end the recording, hit the stop button at the lower right part of the screen, and your macro recording will be saved instantly.
TinyTask
The next free mouse and keyboard recorder on our list is TinyTask. This is a light application with approximately 34KB in size. In spite of its size, this tool is powerful enough to record any actions that are done with your mouse and keyboard. Considered to be the latest macro recorder out there in the market, this app can do both macro recording and recording playback as well. Once you’ve finished capturing the movements that you want to capture, you can then save it or keep it in an executable form.
To record the activities from your mouse and keyboard with TinyTask, simply click the “Record” macroinstruction icon and start doing the movements that need to be recorded. When you’re done, just click the “Stop” button and then it can be saved.
Mini Mouse Macro
If you need a mouse and keyboard recorder that you can use instantly without installing anything then Mini Mouse Macro is the one for you. It is a portable macro recording application that can repeat the exact motions that are done when its recording function is on. Just like the programs above, this tool also has a minimal interface and it’s easy to use. So if you came across a game that requires a lot of repeating movements, you can try Mini Mouse Macro.
In order to capture macros with this program, simply download the program, open it up, and you’re ready to go. Click the “Record” button to capture the keyboard and mouse movement that you prefer. Once done, just hit the “Stop” button to end the recording.
Perfect Automation
Another macro recorder that can help you increase your productivity by saving your time with repetitive tasks is a tool called Perfect Automation. This tool features a launcher for recorded macros, a mouse and keyboard recorder, a scheduler, and a script editor. And what’s good about this app is that it has hundreds of pre-made scripts that you can get access to, and you can enhance them further using the built-in script editor as well.
Ahk Mouse Click
It is easy to record mouse and keyboard with this program. Simply press the “Recorder” function, and your mouse and keyboard movements will be captured. Once done, you can end it by hitting the “Stop” button and your recorded macros will be saved instantly.
Do It Again
Autohotkey Script Right Mouse Click
From the name itself, we can easily say that this program is made to do repetitive actions just like what a mouse and keyboard recorder does. With Do It Again app, you can record any macros from your keyboard and mouse, and then play it again whenever you want to. The process is direct, all you need is to create new tasks and all your mouse and keyboard actions will be captured simultaneously. Just hit the “Scroll Lock” to stop the recording process.
II. Top mouse and keyboard recorder for macOS
Automator
On the other hand, if you’re using macOS, the best way to record your keyboard and mouse movement macros is by using Automator. This is a built-in application for all Mac devices and there’s no need for additional software installation, simply access it from your Mac computer and then you can start recording.
To briefly understand how to record mouse and keyboard, simply open your Mac computer, search for Automator on your Spotlight and launch it. Then create a new “Workflow” and click the “Record” button afterward. Then every keystroke along with your mouse movements will be recorded right away.
Murgaa Macro Recorder for Mac
Autohotkey Mouse Recorder Script
Murgaa Macro Recorder for Mac is a good auto mouse and keyboard recorder. By using this tool, you can record all your keyboard actions and mouse movements. While recording, a preview of all the actions that you do will be shown in the Main window, giving you a hint of what actions are already done. Moreover, this program supports keyboard shortcuts and provides distinct sound alerts.
To save your mouse and keyboard movements on your Mac, simply open the program, click “Start Recording” to trigger the macro recording. Once you finished the recording, hit the “Stop” button to end it. You can also make use of the keyboard shortcuts that you’ve set before you start recording.
Alphaomega Keyboard and Mouse Recorder
The next Mac program that serves as a mouse and keyboard recorder is Alphaomega Keyboard and Mouse Recorder. Upon using the program, you will be given the opportunity to record keyboard keystrokes and mouse movements together with mouse clicks. It has a built-in player that allows you to play the recorded macro and rewind or forward the playback as you wish.
To capture your mouse and keyboard motions with this program, simply open it, then click the “Start” button to begin. Then the mouse and keyboard movements will be captured. Hit the “Stop” button to end it if you’re done. To keep the file, click the diskette-like icon to save the file on your local folder.
Jitbit Keyboard Recorder for Mac
Another tool for Mac users is Jitbit Keyboard Recorder for Mac. By using this recorder, you can capture all of the keystrokes that you want to record. Besides, there are some other things you can do with this program, including automation of any data entry tasks, repeating copy and paste works, and auto-fill the same forms. Simply click the “Record” button and it’s all set.
Autohotkey Record Mouse Clicks
Repeater
If you are a newbie and don’t want to be stressed with AppleScript, then the best way for you to record your mouse and keystrokes is by using Repeater. As its name implies, this program is created for repeating any actions that are made from mouse and keyboard. It can also playback any window movements along with scrolling and zooming.
There’s no need to understand scripts, to start your macro recording with this tool, just open it, and click the “Record” button at any time you prefer. Once done, hit the “Stop” button, and the macro that you’ve captured will be played back right away.
Conclusion
Autohotkey Mouse Buttons
Those are the best mouse and keyboard recorders for both Windows and macOS. There are plenty of them to choose from, just select one recorder that suits your need. Whether it’s a work-related task or just for personal use like gaming, mouse and keyboard recorders also know as repeaters indeed that provide a decent help.