2011 Tradeskill macros

does anyone know what I could do w this macro for the sell part, after combining it fills up every slot AND keeps an item on cursor, so it wont sell until u sell manually and autoinventory the item on cursor

I have 4 empty bags like it said to have
it just keeps combining past the 4 bags

is there a way to make combines stop at 4 bags or at X number of items (or stacks depending on which ts u are working on)
 
To my knowledge, these don't really work all that well anymore. I could be wrong though. I stopped paying attention to this thread a long time ago.