How to use MEmus Custom Macro in Key-mapping

Video How to use MEmus Custom Macro in Key-mapping

MEmu is one of the most popular Android emulator software on PC today. The following article will help you use MEmu's Custom Macro 5.6.1 and above in Key-mapping effectively.

A macro is a sequence of actions (pressing, clicking, delaying, repeating, etc.) that can be triggered by a certain key. It is a powerful addition to MEmu's current Key-mapping control. You can define any sequence of actions as you wish and create your own Special Keys .

Open the Android MEmu emulator and click the Key-mapping button on the sidebar. You will see the Macro icon in the Control panel . Drag and drop it to any position on the screen. Note, it is different from non-Macro key because Macro does nothing with the point you choose. For example, put 3 keys Macro Enter, Space, Ctrl next to each other as shown below.

How to use MEmus Custom Macro in Key-mapping
MEmu

Assign a key to Macro Enter and Click the small pencil mark next to the Macro icon. A new Edit Macro panel appears, located right, containing the Edit & Command area . You will get a Macro script in Edit when you click the + sign of each command in the Command. You can also directly edit them as you like.

Here are the current supported commands and related syntax:

Macro command panel of Android emulator software - MEmu

Comeinand Syntax For example Describe
Size Size xy Size 1200 720 Identify contact screen area, adapt itself and do not need to change.
touch Touch x1 y1 [ time ] Touch 200 200 50 Touch coordinates (x1, y1) for 50 ms. Optional amount of time.
Swipe Swipe x1 y1 x2 y2 [ time ] Swipe 100 100 200 200 500 Swipe from (x1, y1) to (x2, y2) for 50 ms. Optional amount of time.
Input Input string Delay 200
Input hello world!
Delay 500
Type the words in the current inbox box. Encourage additional levels of delay.
Keypress Keypress keys Keypress Home Ignore a key on the keyboard (it only works when the game recognizes the keystroke directly).
Mapkey Mapkey keys Mapkey A Press a non-Macro key (it only supports one key, swipe to add more).
Delay Delay time Delay 100 Delay Macro in milliseconds.
Onkeydown Onkeydown Onkeydown
Touch 100 100 Onkeyup
Touch 200 200
A key combination. First press (100, 100), then press (200, 200) when you release the key.
Onkeyup Onkeyup
Loop Loop [ number of times ] Loop 3
Touch 100 100 Delay 50
Perform the loop 3 times. If not counted, it will repeat continuously until you release the key.

This article takes an example of using Macro keys in Mobile Legends . First, create a Macro to send a "Watch Out Boss" message in the game by pressing Enter . Pay attention to the number of coordinates in the right panel, always changing when moving the mouse on the screen. It tells you the exact coordinates where the mouse cursor is moving. For example, the macro is as follows:

Size 1280 720
Map key F4 // F4 is the mapping key to open the chat box in the game
Delay 100
Touch 1070 440 // Click the input box to activate it in the game
Delay 100
Input WATCH OUT BOSS // Type the message "Watch Out Boss"
Delay 100
Touch 1240 670 // Click the Enter key to send the message.

How to use MEmus Custom Macro in Key-mapping

Second, create a Macro to sell your first weapon and buy an assault weapon in the store by clicking the Space key . This is a long series of actions including 7 clicks and 3 swipes. The example macro is as follows:

Size 1280 720
Touch 1200 20 // Open store by clicking coordinates (1200, 20) on the screen.
Delay 200
Touch 200 660 // Select the first weapon in the deck.
Delay 100
Touch 1120 500 // Sell this weapon.
Delay 100
Touch 80 220 // Select a list of offensive weapons.
Delay 100
Swipe 320 500 320 200 // Swipe 3 times to move down the list.
Delay 100 // Sometimes it happens too fast, so let's add a little "delay" to make it smoother.
Swipe 320 500 320 200
Delay 100
Swipe 320 500 320 200
Delay 100
Touch 570 540 // Select the latest weapon in the list.
Delay 100
Touch 1120 500 // Buy new weapon.
Delay 100
Touch 1220 40 // Close store.

How to use MEmus Custom Macro in Key-mapping

Finally, create a Macro to check the score when pressing "Ctrl", close it by releasing the Ctrl key . In fact, the default X key has the same function. This means that most of the function keys can be replaced by the Macro key. MEmu has just pre-set Macro keys for common features for users to manipulate more.

Some new Macro keys in MEmu:

Size 1280 720
Onkeydown // Execute the command between onkeydown and onkeyup while holding this key.
Touch 992 10 // Open transcript.
Onkeyup // Execute the following command onkeyup when you release the key.
Touch 200 200 // Close the scoreboard.

How to use MEmus Custom Macro in Key-mapping

Hope the article is helpful to you.

Update new 2021

Customize Macro Key Mappings

How to use Custom Macro in MEmu Android emulator key-mapping (since MEMU 5.6.1)

Macros are sequences of actions (such as keystrokes, mouse clicks, delays and loop, etc) that can be triggered by a specific key. It’s a powerful feature to extend the existed key-mapping control. You can define any action sequence as you want and make your own special KEY.

Open MEmu Android emulator and click key-mapping button on the sidebar. You will have a Macro icon in the advanced controls panel. Drag and drop it to any spot on the screen. Be noted that it’s different from non-Marco key because Macro has nothing to do with the spot you place. For example, I place the three Macro keys “Enter, Space, Ctrl” on the bottom.

Assign a key to this Macro for example “Enter” and Click the small pencil mark beside Macro icon. There will be a new panel of Edit Macro on the right, which contains Edit area and Command area. You will get the Macro script in Edit area when clicking the + mark of each command in Command area. You can also edit them directly as you want. The current supported commands and related grammar are as follows:

MEMU Android Emulator Macro Command Table – 1
android emulator macro

MEMU Android Emulator Macro Command Table – 2
android emulator macro

Well, let me explain how to use it by nine instructional videos.

1. loop/loopstop

 

2. onkeydown/onkeyup

 

3.input

 

4. keydown/keyup/keymove

 

5. touch

 

6. swipe

 

7. keypress

 

8. mapkey

 

9. entershoot/exitshoot

 

Leave a Comment

The best Android emulators for gaming

The best Android emulators for gaming

In this article, Quantrimang only gives a list of the best Android emulators for playing games.

Top best PUBG Mobile emulators and download links

Top best PUBG Mobile emulators and download links

These are the best Android emulators to play PUBG Mobile

Instructions for setting up a virtual keyboard to play games on MEmu

Instructions for setting up a virtual keyboard to play games on MEmu

Learn how to set up a virtual keyboard on the MEmu emulator for a seamless gaming experience. Optimize your gameplay with custom controls and keyboard mapping.

How to fix stop error 99% when installing and opening MEmu

How to fix stop error 99% when installing and opening MEmu

99% stop error when installing and launching MEmu is a common issue faced by users of Android emulators. This error can arise due to various reasons, and we provide comprehensive solutions to rectify the issue.

Instructions to open multiple windows at the same time on the MEmu emulator

Instructions to open multiple windows at the same time on the MEmu emulator

MEmu Android emulator software is no stranger to many Mobile gamers, it helps us save time and wear on your smartphone when supporting using a lot of software, playing a lot of game when you want to switch words

How to set up CPU and RAM on MEmu emulator

How to set up CPU and RAM on MEmu emulator

Guide on some ways to configure Android emulator MEmu for better performance when running applications and games.

How to enable virtualization technology on MEmu

How to enable virtualization technology on MEmu

MEmu App Player will have better performance if you enable hardware virtualization technology (like Intel-VT, vt-x, AMD-V) on the computer. Most popular Intel & AMD CPUs support this feature.

Instructions for installing and using MEmu on your computer

Instructions for installing and using MEmu on your computer

MEmu Emulator is the best free Android emulator on PC today, allowing players to use Android on their computers and experience Android's entertainment applications on their computer screens.

Troubleshooting Cannot Connect to Printer 0x00000709

Troubleshooting Cannot Connect to Printer 0x00000709

Struggling with the "Cannot Connect to Printer" error 0x00000709? Discover proven troubleshooting steps to resolve this Windows printer issue quickly and get back to seamless printing. Updated for the latest systems.

How to Use Windows 11 Hyper-V for Virtual Machines

How to Use Windows 11 Hyper-V for Virtual Machines

Discover how to enable and use Windows 11 Hyper-V for virtual machines. Step-by-step guide to setting up VMs, installing OS, and optimizing performance for developers, IT pros, and enthusiasts.

How to Fix Windows 11 Hibernate Option Greyed Out

How to Fix Windows 11 Hibernate Option Greyed Out

Struggling with the Windows 11 hibernate option greyed out? Discover step-by-step solutions to fix this common issue, restore power options, and get back to seamless hibernation. Updated with the latest Windows tweaks for optimal performance.

How to Fix Windows 11 System Sounds Missing Fix

How to Fix Windows 11 System Sounds Missing Fix

Struggling with Windows 11 "System Sounds" missing? Discover proven fixes to restore your notification chimes and error beeps effortlessly. Step-by-step guide for seamless audio recovery.

How to Fix Windows 11 Search Indexing Paused Error

How to Fix Windows 11 Search Indexing Paused Error

Struggling with Windows 11 Search Indexing Paused error? Discover proven steps to fix it fast, restore smooth searching, and boost your PC performance without tech headaches.

How to Use Windows 11 DirectStorage for Games

How to Use Windows 11 DirectStorage for Games

Dive into how to use Windows 11 DirectStorage for games to slash load times and skyrocket frame rates. Get step-by-step setup, compatible titles, and tips for optimal NVMe SSD gaming performance.

Troubleshooting Windows 11 Aura Sync and ICUE Errors

Troubleshooting Windows 11 Aura Sync and ICUE Errors

Struggling with Windows 11 Aura Sync and iCUE errors? This comprehensive guide offers step-by-step troubleshooting tips to resolve compatibility issues, crashes, and sync problems for your RGB lighting setup. Get back to vibrant control in no time!

Solving Windows 11 0x800ccc0e Outlook Error 2026

Solving Windows 11 0x800ccc0e Outlook Error 2026

Struggling with the frustrating 0x800ccc0e Outlook error on Windows 11? Discover proven, step-by-step solutions to resolve this issue quickly and get your emails flowing again in 2026. No tech expertise required!

How to Fix Windows 11 Disk Read Error Occurred

How to Fix Windows 11 Disk Read Error Occurred

Struggling with the frustrating "A Disk Read Error Occurred" on Windows 11? Discover proven, step-by-step fixes to restore your PC quickly and safely. Get back to smooth computing today!

How to Fix Windows 11 DirectX 12 Unsupported Error

How to Fix Windows 11 DirectX 12 Unsupported Error

Struggling with the Windows 11 "DirectX 12 Unsupported" error? Discover proven, step-by-step fixes to get your games and apps running smoothly again. No tech expertise needed!

How to Fix Windows 11 Windows Update Catalog Error

How to Fix Windows 11 Windows Update Catalog Error

Struggling with the Windows 11 "Windows Update" Catalog Error? Discover proven, step-by-step fixes to get your updates running smoothly again. Say goodbye to frustrations and hello to a seamless PC experience!

Fixing Background Processes High CPU Usage on Windows 11

Fixing Background Processes High CPU Usage on Windows 11

Struggling with high CPU usage from background processes on Windows 11? Discover proven fixes to optimize performance, boost gaming, and reclaim your PC

How to Use a Windows 10 Key to Activate Windows 11

How to Use a Windows 10 Key to Activate Windows 11

Discover how to seamlessly activate Windows 11 using your existing Windows 10 key. This comprehensive guide covers eligibility, steps, troubleshooting, and tips for a smooth upgrade. Save time and money today!

How to Use Windows 11 Sound Mixer Per App

How to Use Windows 11 Sound Mixer Per App

Discover how to use the Windows 11 sound mixer per app to customize audio levels for each application. Step-by-step guide to balance sounds, fix imbalances, and enhance your listening experience effortlessly.

Troubleshooting Windows 11 Chkdsk Stuck at 10% or 100%

Troubleshooting Windows 11 Chkdsk Stuck at 10% or 100%

Struggling with CHKDSK stuck at 10% or 100% on Windows 11? Discover quick, effective troubleshooting tips to resolve the issue and get your system running smoothly again. Step-by-step guide inside.