Jump to content
Sign in to follow this  
RAMMRODD

Yahoo Instant Messenger Chat Window Help

Recommended Posts

RAMMRODD

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")
Else
; Send some text directly to this window's edit control
    ControlSend($handle, "", "YIMInputWindow1", "AbCdE")
EndIf

Am I using the wrong information?

Share this post


Link to post
Share on other sites
Authenticity

$handle = WinGetHandle("CLASS:ATL:007C07F0", "")

...is not a valid syntax for the Control* functions, unless the title of the window is "CLASS:ATL:007C07F0". Try:

$handle = WinGetHandle("[CLASS:ATL:007C07F0]")

Share this post


Link to post
Share on other sites
RAMMRODD

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

thanks!

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

Share this post


Link to post
Share on other sites
nguyenbason

Do...Until something happened


UnderWorldVN- Just play the way you like it

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  

×