Jump to content

Yahoo Instant Messenger Chat Window Help

Recommended Posts

I've been using the helpfile (as everyone suggests) but I cant seem to use it to find the info on Yahoo Messengers's chat window. This is what I get form the AU3 Window Info:

>>>> Window <<<<

Title: ACCOUNTNAME (ACCOUNT@yahoo.com)

Class: ATL:007C07F0

Position: -4, -4

Size: 1288, 700

Style: 0x17CF0000

ExStyle: 0x00000100

Handle: 0x000C046C

>>>> Control <<<<

Class: YIMInputWindow

Instance: 1

ClassnameNN: YIMInputWindow1

Advanced (Class): [CLASS:YIMInputWindow; INSTANCE:1]

ID: 225

Text: IM Input Window

Im trying to send text to all Yahoo Messenger windows. I took the help file example and swapped out the info in it for that for my needs...not working:

; Identify the YAHOO window that contains the text "this one" and get a handle to it
; Change into the WinTitleMatchMode that supports classnames and handles
AutoItSetOption("WinTitleMatchMode", 4)

$handle = WinGetHandle("CLASS:ATL:007C07F0", "")
If @error Then
    MsgBox(4096, "Error", "Could not find the correct window")
; Send some text directly to this window's edit control
    ControlSend($handle, "", "YIMInputWindow1", "AbCdE")

Am I using the wrong information?

Link to comment
Share on other sites

thanks so much that worked plus changing the controlsend to YIMInputWindow1 instead of without the 1


EDIT: How can I loop/sleep forever until something happens? I tried while but it just ends after the sleep time I input.....

thanks again

Edited by RAMMRODD
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

  • Recently Browsing   0 members

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