WoW:API PickupMacro: Difference between revisions
Jump to navigation
Jump to search
(Used the wowapi Template) |
({{protectedcombatapi|2.2}}) |
||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} __NOTOC__ | ||
{{protectedcombatapi|2.2}} | |||
Pick up a macro from the macro frame and place it on the cursor | Pick up a macro from the macro frame and place it on the cursor | ||
Line 5: | Line 6: | ||
PickupMacro(macroID) | PickupMacro(macroID) | ||
== Arguments == | |||
:;macroID : Number - the position of the macro in the macro frame. Starting at the top left macro with 1, counting from left to right and top to bottom. The IDs of the first page (all characters) range from 1-18, the second page 19-36. | :;macroID : Number - the position of the macro in the macro frame. Starting at the top left macro with 1, counting from left to right and top to bottom. The IDs of the first page (all characters) range from 1-18, the second page 19-36. | ||
== Example == | == Example == | ||
PickupMacro(25); | PickupMacro(25); | ||
===Result=== | |||
:The macro located on the second page of the macro frame, middle row, far left will be placed on the mouse cursor and can be dropped onto any action button. If this position is empty (no macro in that slot defined), nothing happens. | :The macro located on the second page of the macro frame, middle row, far left will be placed on the mouse cursor and can be dropped onto any action button. If this position is empty (no macro in that slot defined), nothing happens. | ||
==Uncertainties== | ==Uncertainties== | ||
If you use a MacroID argument which is greater than 36, nothing seems to happen. However, I haven't yet figured out whether the function just ignores such arguments, or this ignorance is just a side-effect of the 36 macro limit of the standard UI. | If you use a MacroID argument which is greater than 36, nothing seems to happen. However, I haven't yet figured out whether the function just ignores such arguments, or this ignorance is just a side-effect of the 36 macro limit of the standard UI. |
Revision as of 18:04, 25 September 2007
← WoW API < PickupMacro
This function is protected, and cannot be called from insecure code while in in combat.
|
Pick up a macro from the macro frame and place it on the cursor
PickupMacro(macroID)
Arguments
- macroID
- Number - the position of the macro in the macro frame. Starting at the top left macro with 1, counting from left to right and top to bottom. The IDs of the first page (all characters) range from 1-18, the second page 19-36.
Example
PickupMacro(25);
Result
- The macro located on the second page of the macro frame, middle row, far left will be placed on the mouse cursor and can be dropped onto any action button. If this position is empty (no macro in that slot defined), nothing happens.
Uncertainties
If you use a MacroID argument which is greater than 36, nothing seems to happen. However, I haven't yet figured out whether the function just ignores such arguments, or this ignorance is just a side-effect of the 36 macro limit of the standard UI.