Jump to content
Sign in to follow this  
yehia

Object creation

Recommended Posts

yehia

im trying to get the msg recived on MSN or windows live messenger in a msg box when its received

im failing heavily in doing this and this is how its done according to MSDN

http://msdn.microsoft.com/en-us/library/aa751066.aspx

can anyone help me please

Share this post


Link to post
Share on other sites
BrettF

This event fires when an instant message is received from the remote application. The event is labeled "restricted" because it is only available if the application has either the ReplaceIM or ReceiveIM permission flag. For more information, see Standard vs. Advanced Applications.

Read that and post your attempts.

Cheers,

Brett

Share this post


Link to post
Share on other sites
BrettF

Where do you create the object?

It should be something like this:

$oWin = ObjCreate("OBJ.NAME.HERE")
If Not IsObj($oWin) Then
    MsgBox(0, "", "Object Not Created!")
    Exit
EndIf
MsgBox (0, "", _MsnGetChatText ($oWin))

Func _MsnGetChatText ($Win)
    If Not IsObj($Win) Then Return 0
    Return $Win.History
EndFunc  ;==>_msngetchattext

Share this post


Link to post
Share on other sites
yehia

well thats what i have

$oMessenger = ObjCreate("Messenger.UIAutomation.1")
Func _MsnGetChatText ($oMessenger)
    If Not IsObj($oMessenger) Then Return 0
    Return $oMessenger.History
EndFunc

but this but this event or property named History isnt working i tested it with the channel.im too but field again

thanks for ur help again

Share this post


Link to post
Share on other sites
BrettF

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  

×