Any reason this could be tossing an error? I'm trying to do an autosell and to check when the merch window closes to send my bot back home.
Merch Window Open Check:
:ChechIfDoneSelling
/if (!${Window[MerchantWnd].Open}) {
/echo done selling
/delay 2
/goto :ReturnToLeader
}
/goto :CheckIfDoneSelling