WoW MessageQueue addon Shadowlands/Burning Crusade Classic 2021
wow addon MessageQueue


Game Version: 1.13.7 +2
Total Downloads: 17,474
Updated: May 20, 2021
Created: Jan 12, 2020
download MessageQueueDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
MessageQueue 0.3.0 release 17.13 KB May 20, 2021 1.13.7 +2 0 download MessageQueue MessageQueue 0.3.0 releaseDownload
MessageQueue 0.2.0 release 16.52 KB Mar 27, 2021 9.0.5 2,191 download MessageQueue MessageQueue 0.2.0 releaseDownload
MessageQueue 0.1.4 release 16.45 KB Mar 10, 2021 9.0.5 1,863 download MessageQueue MessageQueue 0.1.4 releaseDownload
MessageQueue 0.1.3 release 16.46 KB Nov 19, 2020 9.0.2 3,645 download MessageQueue MessageQueue 0.1.3 releaseDownload
MessageQueue 0.1.2 release 16.45 KB Oct 12, 2020 9.0.1 +1 947 download MessageQueue MessageQueue 0.1.2 releaseDownload
MessageQueue 0.1.1 release 16.44 KB Jan 14, 2020 8.3.0 +1 1,997 download MessageQueue MessageQueue 0.1.1 releaseDownload
MessageQueue 0.1 release 16.48 KB Jan 13, 2020 8.2.5 +1 6,831 download MessageQueue MessageQueue 0.1 releaseDownload


Share this:


Implements an alternative to SendChatMessage() to securely send messages in chat channels in response to a hardware event.

How it works

Use MessageQueue.SendChatMessage() in your add-ons and macros to send chat messages instead of SendChatMessage(). MessageQueue will then wait for a specific hardware event (by default mouse button 5) to send the message. A callback that will be executed after the message has been sent can also be provided.

The default hardware event used is a mouse click on button 5. It can be changed in the bindings.

When one or multiple messages are awaiting in the queue, the top left pixel of the WoW client turns gray (#333333). MessageQueue can be used in conjunction with AutoHotkey and the provided PixelTrigger.ahk script to automatically send the hardware event (mouse click on button 5) to the World of Warcraft window when it’s focused.

If you wish to use another hardware event than mouse button 5, make a copy of the PixelTrigger.ahk script and edit it accordingly (instructions are provided within the script comments).

Please be aware that the use of AutoHotkey is not against Blizzard’s ToS and you won’t get banned for just using it along with WoW. It’s commonly used by players with disabilities and for multiboxing. Only obvious abuse such as spamming or automating complex actions can get you banned. Do not use any other script than the provided PixelTrigger.ahk unless you know what you’re doing.

API documentation


MessageQueue.SendChatMessage("msg" [,"chatType" [,languageID [,"target" [, "callback"]]]]);
Add a message to the queue if the target requires a hardware event (chatType is either “SAY”, “YELL” or “CHANNEL”). For any other chatType, the message is sent instantly.

Arguments are the same as the regular SendChatMessage function.

The optional callback function will be executed when the message has been sent. The callback should not contain any other code requiring a hardware event.


Enqueue a function that requires a hardware event to run. The function code should not perform more than one action requiring a hardware event.

Shares the same queue as MessageQueue.SendChatMessage().


messageCount = MessageQueue.GetNumPendingMessages()
Returns the number of messages awaiting in the queue.


Runs the first message awaiting in queue. Should only be called in response to a hardware event. If for some reason the message fails, it won’t be possible to attempt it again.

Integration guide

The integration of MessageQueue in your add-on is pretty straightforward.

First, add MessageQueue as a required dependency for your add-on by adding the following in the .toc file:
## RequiredDeps: MessageQueue

Then, just replace SendChatMessage() calls by MessageQueue.SendChatMessage().

However, keep in mind that the message will not be sent instantly (for example if the World of Warcraft window is not in focus). If the rest of your code requires the message to be actually sent, you should pause the execution of the current process then resume it in the callback.

SendChatMessage(text, 'SAY')
-- Do stuff

MessageQueue.SendChatMessage(text, 'SAY', nil, nil, function()
-- Do stuff
-- Resume process execution
-- Pause process execution

The functions MessageQueue.Enqueue and MessageQueue.Run can be hooked using hooksecurefunc() by your add-on to perform actions when an element has been added or removed from the queue.


Add a comment