alienmonk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am trying to write an application in Perl/Tk that will log the text of yahoo messenger to my tk app so that I can run some analysis on the text. I can't figure out how to grab the text and transfer it to my tk textbox. Any ideas would be appreciated. I have been playing with win32::guitest,but can't get the actual text in the chat room window. Thanks again for any ideas.

Replies are listed 'Best First'.
Re: logging from yahoo to TK?
by CountZero (Bishop) on Feb 08, 2009 at 10:18 UTC
    Is your problem with the Yahoo messenger side (I can't figure out how to grab the text) or with the Tk-side (transfer it to my tk textbox)?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: logging from yahoo to TK?
by frieduck (Hermit) on Feb 09, 2009 at 01:37 UTC
    Have you considered using Pidgin, where you can write a plugin in Perl to do your text processing / analysis, or have your plugin feed the messages via IPC to your Tk app? That should be easier and more reliable than screen scraping Y! messenger.