Jump to content

monitor chat window for specific string


Ixany
 Share

Recommended Posts

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!!

Link to comment
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.

Edited by AU3Newbie
Link to comment
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...

:)

Link to comment
Share on other sites

  • Moderators

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 :

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.

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...