How to check the status of chat window

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

How to check the status of chat window

#1 Post by miximixi007 » Wed Dec 07, 2011 3:10 am

how to know the chat window is open or close? Thank you for your reply.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to check the status of chat window

#2 Post by rock5 » Wed Dec 07, 2011 3:58 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

Re: How to check the status of chat window

#3 Post by miximixi007 » Wed Dec 07, 2011 4:40 am

Yes, i just need this.Thank you rock5

Post Reply

Who is online

Users browsing this forum: Bing [Bot], CanceR and 2 guests