WoW API: AutoEquipCursorItem

WoW API < AutoEquipCursorItem

Automatically equips the item currently held on the cursor.

AutoEquipCursorItem()

ExampleEdit

PickupContainerItem(0, 1)
AutoEquipCursorItem()
Result

Equips the first item in your backpack to the relevant slot (if it can be equipped).