Jump to content

Object creation


yehia
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...