04-01-2016, 06:56 PM
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.
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.