views:

406

answers:

0

Hi i want to make a sort of a bot for WLM, But the normal controlsend in autoit wont work

the basic question is how can i send a text to the windows live messenger window Without activating it?

Example: There is someone in WLM with the window active called "Joop" I do:

ControlClick("Joop","","[CLASS:DirectUIHWND; INSTANCE:2]","Left",1,322,507)
ControlSend("Joop","","[CLASS:DirectUIHWND; INSTANCE:2]","Hi Joop")

this doesn't work however when I do this

WinActivate("Joop","")
ControlClick("Joop","","[CLASS:DirectUIHWND;INSTANCE:2]","Left",1,322,507)
ControlSend("Joop","","[CLASS:DirectUIHWND; INSTANCE:2]","Hi Joop")

it does work however now its activated what i dont want. there is a problem with the window the whole msn talk window is one window so no extra control to type in thats why i tried the contolClick on the coordinates of the typing screen without succ6

this is the summary.

Text:   
Position:   0, 28
Size:   882, 607
ControlClick Coords:    282, 180
Style:  0x56000000
ExStyle:    0x00010000
Handle: 0x00190916

>>>> Mouse <<<<
Position:   1885, 557
Cursor ID:  0
Color:  0xFFFFFF

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
CVoiceVideoAvatarHostWindow

does anyone know how to get something in that textfield without activating it (so it can run on background) and using a lame function like send.

OR how can i send a text to the windows live messenger window Without activating it

Thanks Matthy