Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check text area content of a child window
#1
Hi,

I am trying to check if a chat window (from an application) is empty or not.. I tried to record a macro to find out the text area child control name so that I could check whether or not it has any text in it.

===
int w1=act(win("WaterStrider - Conversation" "QWidget"))
lef+ 336 105 child("qt_scrollarea_viewport" "QWidget" w1) 1
==

Does this mean "qt_scrollarea_viewport" is the name of the text area in that chat window? if yes, how can I check its contents?

Basically what I am trying to do is to run a macro when i recieve an incoming chat but I do not want the macro to be triggered when I am initiating a chat with a user. I thought about this and realized that the only difference would be incoming chats would have a message in it. So if I can check whether the message area (text area) of the chat window is empty, then I can be sure that I am initiating that chat else its an incoming chat (i.e. if the text area is not empty)

Thanks again for your help.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)