I used to use a macro to hit the combine and auto-inventory buttons on the tradeskill window. These days it still works, but there are two problems I have with it. First, when it gets to the "Auto-inventory" part it will spam that button about 10 times instantly. I know this because we get to problem number 2, which is when it is out of inventory space and the "There are no open spaces" message pops up about 10 times in rapid succession, the macro does not end although an event is to trigger it ending upon my inventory being full.
Any input/advice where this macro is going wrong? Specifically, how to slow it down and how to get it to actually register the "no open slots" message?
Any input/advice where this macro is going wrong? Specifically, how to slow it down and how to get it to actually register the "no open slots" message?
INI:
#event CombineError "#*#no open slots#*#"
#event CombineError "#*#You cannot combine these items in this container type!#*#"
#event CombineError "#*#did not accept these items#*#"
#event CombineError "#*#You are missing#*#"
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub DoCombine
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sub Main
/declare EndingVar
/varset EndingVar 1
/call ClearCursor
:Loop
/nomodkey /notify TradeskillWnd CombineButton leftmouseup
/delay 1${Cursor.ID}
/call ClearCursor
/doevents
/if (${EndingVar}==1) /goto :Loop
/varset EndingVar 1
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Clear Cursor
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub ClearCursor
/declare x int local
:auto_inv
/if (${Cursor.ID}) {
/if (${Cursor.Container}) {
/for x 1 to 8
/if (!${InvSlot[pack${x}].Item.Container}) /nomodkey /itemnotify pack${x} leftmouseup
/next x
} else {
/autoinventory
}
/goto :auto_inv
}
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub Event Combine error
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_CombineError
/end
/return