Sign in to follow this  
Followers 0
Ixany

monitor chat window for specific string

12 posts in this topic

I'm pretty new to AutoIt

Here's my problem, I go on a chat website and the problem is somtimes there's too much people chatting in the same time that's it can be hard to see text concerning myself. I would like to make a script that captures any line containing my nick and put it in another window.

Is parsing page once waiting a little while then parse it again and search for my nick is the only option ? Or is there a way to capture text in real time ?

Thanks for any idea!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If the chatwindow is not based IE or other brower,you can get it by ControlgetText() and compare the result with String*().

then you can use controlsetText or send or clip*() to work.ICQ or others chat client works well.

Edit:

use While for a loop.you can do it all the time.

Edited by AU3Newbie

Share this post


Link to post
Share on other sites

If the chatwindow is not based IE or other brower,you can get it by ControlgetText() and compare the result with String*().

then you can use controlsetText or send or clip*() to work.ICQ or others chat client works well.

Edit:

use While for a loop.you can do it all the time.

In fact, the chatwindow is a java applet called from an IE window (it's volanochat)... I assume what you proposed won't work...

:)

Share this post


Link to post
Share on other sites

:) I believe it does,but you should change something about childwindow.

I've seen some experts talk about it,but i cannot understand it so far.Waiting for a better answer too.

Share this post


Link to post
Share on other sites

What does the AutoIT Window Info Tool say for the ChatBox?

I can help you with the code...I don't use volano so most of us would need to see a a snapshot from the tool.

Share this post


Link to post
Share on other sites

I tried to get anything out of the window (if others wanna try a test room can be found here)

http://www.volano.com/chat.html

This is all the info the tool I made gets out of it:

SunAwtCanvas2 :

SunAwtCanvas3 :

SunAwtCanvas4 :

SunAwtCanvas5 :

SunAwtCanvas6 :

SunAwtCanvas7 :

Button1 : Get Rooms

Button2 : Enter Room

ListBox1 :

ListBox2 :

SunAwtListWrap1 :

SunAwtListWrap2 :

SunAwtLabel1 :

SunAwtLabel2 : Your name:

SunAwtLabel3 : Your profile:

SunAwtLabel4 : 23 rooms:

SunAwtLabel5 : People:

Edit1 :

Edit2 :


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Well you have to enter a room, though i get nothing really good in there since the chat is in a SunAwtCanvas


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Well you have to enter a room, though i get nothing really good in there since the chat is in a SunAwtCanvas

Nothing visible even after chate:

SunAwtListWrap1 :

SunAwtCanvas1 :

SunAwtCanvas2 :

SunAwtCanvas3 :

SunAwtCanvas4 :

SunAwtCanvas5 :

SunAwtCanvas6 :

SunAwtCanvas7 :

SunAwtCanvas8 :

Edit1 :

But I didn't expect it to to be honest. Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I even tried the Java Consol window but even there I couldnt find anything usefull :)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Thx guys for all your tries... but whta is your conclusion ? Is it possible to do anything or I should forget about it ?

And again thx all trying to help me!

Share this post


Link to post
Share on other sites

Well my guess is that Java and Autoit is never a good mix so this might not be the best langues to use


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0