RAMMRODD Posted June 21, 2009 Share Posted June 21, 2009 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? Link to comment Share on other sites More sharing options...
Authenticity Posted June 21, 2009 Share Posted June 21, 2009 $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]") Link to comment Share on other sites More sharing options...
RAMMRODD Posted June 21, 2009 Author Share Posted June 21, 2009 (edited) 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 June 21, 2009 by RAMMRODD Link to comment Share on other sites More sharing options...
nguyenbason Posted June 21, 2009 Share Posted June 21, 2009 Do...Until something happened UnderWorldVN- Just play the way you like it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now