WoW:API PickupAction: Difference between revisions
Jump to navigation
Jump to search
m (ClearCursor is a much better alternative) |
|||
Line 10: | Line 10: | ||
:(actionSlot) | :(actionSlot) | ||
:;actionSlot : Numeric - The action slot to pick the action up from. | :;actionSlot : Numeric - The [[ActionSlot|action slot]] to pick the action up from. | ||
=== Returns === | === Returns === | ||
:''nil'' | :''nil'' |
Revision as of 02:03, 10 January 2008
← WoW API < PickupAction
This function is protected, and cannot be called from insecure code while in in combat.
|
Pick up an action for drag-and-drop.
PickupAction(actionSlot)
Parameters
Arguments
- (actionSlot)
- actionSlot
- Numeric - The action slot to pick the action up from.
Returns
- nil
Details
- If the slot is empty, nothing happens, otherwise the action from the slot is placed on the cursor, and the slot is filled with whatever action was currently being drag-and-dropped (The slot is emptied if the cursor was empty).
- If you wish to empty the cursor without putting the item into another slot, try ClearCursor.