Jump to content

Recommended Posts

Posted (edited)

Can someone convert any of the below to its AutoIT equivalent ?

CODE
#Region - Event Handler when new mail arrives

Dim WithEvents Items As Redemption.RDOItems

...

Set Session = New Redemption.RDOSession

Session.Logon

Set Store = Session.Stores.DefaultStore

Set Inbox = Store.GetDefaultFolder(olFolderInbox)

Set Items = Inbox.Items

...

Sub Items_ItemAdd(ByVal Mail As RDOMail)

MsgBox "Item added: " & Mail.Subject

End Sub

#EndRegion

Edited by dragonlord
Posted

@dragonlord

On the fly.

#Region - Event Handler when new mail arrives
Dim $Items
$Session = objcreate("Redemption.RDOSession")
$Session.Logon
$Store = $Session.Stores.DefaultStore
$Inbox = $Store.GetDefaultFolder(olFolderInbox)
$Items = $Inbox.Items
...

Func Items_ItemAdd(ByVal $Mail)
MsgBox(0,"Return", "Item added: " & $Mail.Subject)
EndFunc
#EndRegion

regards

ptrex

Posted

>_<

Thats fine. I'm wondering how or when the function gets called.

I think you're missing something like:
; Trigger event on "ItemAdd" to inbox
$SinkObject=ObjEvent($Inbox,"IEEvent_")

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
  • Recently Browsing   0 members

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