Sign in to follow this  
Followers 0
Matthy

Using control send on windows live messenger

5 posts in this topic

#1 ·  Posted (edited)

Hi i want to make a sort of a bot for WLM,

But the normal controlsend wont work

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.

>>>> Window <<<<
Title:  xxxx <XXXXXX@live.nl>
Class:  IMWindowClass
Position:   1599, 319
Size:   890, 669
Style:  0x16CF0000
ExStyle:    0x00000100
Handle: 0x000905F0

>>>> Control <<<<
Class:  DirectUIHWND
Instance:   2
ClassnameNN:    DirectUIHWND2
Advanced (Class):   [CLASS:DirectUIHWND; INSTANCE:2]
ID: 
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.

Thanks

Matthy

Edited by Matthy

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I encountered this kind problem many times.

Some application would work and some wouldn't.

Anyway, I think the key is that you keep trying.

Try with

WinWait/WinWaitActive

WinGetHandle

WinSetState

ControlSend/ControlClick

I don't guarantee it would work 100%, but like I said, this kind of problem you should try for your self.

Edited by mrmacadamia

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Put simply, the WLM interface does not play well with AutoIt.

Back when I was trying to figure this out, I come to the conclusion that the best way would be using a different Messenger client that AutoIt did play nicely with... Just off the top of my head, "PixaMSN" was the last one I was playing with, the interfaces can be easily read and interacted with. :)

http://www.pixamsn.com/

There is also a MSN UDF on the forums that I used for a while, it was hit and miss on some machines... Not sure why.

Edited by BinaryBrother

Share this post


Link to post
Share on other sites

thanks all but i am afraid mrmacadamia what you said wont work :)

for BinaryBrother its one step closer to my succes. the only problem still is that I am stuck with that messenger and would love to use the normal WLM for non bot functions. I dont know is it possible to be logged on twice with a different messenger on the same location?

if so you can hide that messenger and is it as bot only while still using the normal messenger.

Thanks

Matthy

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=28633 <---- MSN UDF

http://www.autoitscript.com/forum/index.php?showtopic=91325 <---- My old script

I had the MSN UDF working with my old script at one point. Both these should get you started messing with MSN in a 'dirty' way...

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  
Followers 0