Page 1 of 1
How to check the status of chat window
Posted: Wed Dec 07, 2011 3:10 am
by miximixi007
how to know the chat window is open or close? Thank you for your reply.
Re: How to check the status of chat window
Posted: Wed Dec 07, 2011 3:58 am
by rock5
The bot checks whether the chat window is open before executing RoMScript or sendMacro commands. It does it like this
Code: Select all
memoryReadUInt(getProc(), addresses.editBoxHasFocus_address) == 0
That returns true if an edit window has focus and false when it doesn't.
Re: How to check the status of chat window
Posted: Wed Dec 07, 2011 4:40 am
by miximixi007
Yes, i just need this.Thank you rock5