these days i made a bot to run the protective lua use winform,but i got a strange situation:when i press F5 in VS 2008,my bot run excellent,but when i press CTRL+F5 to run it,my client usually crashed at EnterWorld().i have tried all the wow api in CharacterSelect Frame to do this,likeCharSelectEnterWorldButton:Click,),CharacterSelect_EnterWorld(),and all failure.
at last i used SendMessage to simulate a mouse click,it worked,no crash!
i noticed someone use this to enterworld:
Code:
CharacterSelect_SelectCharacter(1);
{0}:SetScript('OnUpdate', nil);
EnterWorld()
obviously it's not available,who can help me to correct it?