TAU - TBD's Addon for UseAction fix

This addon enables you to use UseAction in your own macros. All you have to do is replace UseAction in your macro with tUseAction.

Sample macro code

Here is a sample macro code for explanation.

macro 1 (register in the 1st slot in the bottom action bar)
/script DEFAULT_CHAT_FRAME:AddMessage("macro1"); UseAction(2);
macro 2 (register in the 2nd slot in the bottom action bar)
/script DEFAULT_CHAT_FRAME:AddMessage("macro2");

In clients before patch 1938, pushing the 1st slot of the action bar starts macro 1, which calls macro 2. Thus, you get two messages "macro1" and "macro2" in the chat window. In the current client (after patch 1938), the function UseAction does not work in macro. UseAction(2) in macro 1 is neglected, and you get only one message "macro1".

Install this addon, and replace UseAction with tUseAction as follows. No needs to change macro 2.

macro 1 (register in the 1st slot in the bottom action bar)
/script DEFAULT_CHAT_FRAME:AddMessage("macro1"); tUseAction(2);

Now, you get two messages "macro1" and "macro2". You might notice that the focus window flickers, and you might also notice that tUseAction does not immediately execute the action. These are deeply related to my trick to enable UseAction.

Credit

I thank apoc1024 for the improvement of my trick for UseAction "fix".

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
02 Nov 2009
Category
Last update
02 Nov 2009
Development stage
Beta
License
Creative Commons License By-Nc-Sa 3.0
Curse link
TAU - TBD's Addon for UseAction fix
Recent file

Authors