This is a specific language issue that has next to nothing to do with Battle.net programming save for the fact that you're attempting to make a Battle.net bot. To further aggravate the issue you're talking about something that has been rehashed nothing short of a hundred times on this forum.
This topic has been moved to Visual Basic Programming (http://forum.valhallalegends.com/index.php?board=31).
http://forum.valhallalegends.com/index.php?topic=14381.0