Jump to content

Recommended Posts

Posted

I've got a script that automagically adds contacts and distribution lists into Outlook, and that works fine, but each time it encounters a distribution list, Outlook pops up a security window that says "A program is trying to access", etc. The user has to click Yes or "Allow access for ... minutes" then yes. I know it's possible to temporarily disable that warning, but the only code I have is for VB.

First question, can anyone translate the following code into AutoIt-happy code that I can use in my script?

Dim SecurityManager As New AddinExpress.Outlook.SecurityManager
SecurityManager.DisableOOMWarnings = True
Try
  ... any action with protected objects such as contacts or items...
Finally
  ' In any case please remember to turn on Outlook Security after your code, since now it is very easy to switch it off! :-)
  SecurityManager.DisableOOMWarnings = False
End Try

Second question, and one that I've had for the last couple of days... Is there a guide somewhere to converting VB to AutoIt-compatible code? If not, can anyone give me some hints and pointers (for someone that doesn't know VB, like myself), as I'm sure I'm not the only one to come across these kinds of issues?

Thanks everyone! This is definitely one of the most helpful forums I've ever encountered, and that alone is a major plus for AutoIt (even if it didn't rock).

Posted

Oh damn... I just figured out that the "SecurityManager" is a third-party addin that costs $120 per license.

In that case, does anyone know how to disable the security warning in Outlook?

Posted

I saw that, but I got confused about what exactly it requires, and how it works. Does it have to be present on every computer the AutoIt script is run? Would you be willing to provide the snippet that disables the security warning?

Posted

It seems to work alright if I register the DLL, but I don't want to have to do that on every computer... is it possible to just include that with my exe and do some sort of DllOpen and DllCall to disable the security warnings temporarily?

Posted

It seems to work alright if I register the DLL, but I don't want to have to do that on every computer... is it possible to just include that with my exe and do some sort of DllOpen and DllCall to disable the security warnings temporarily?

FileInstall(DLL File)

Run(DLL Registration)

Run(Program)

Run(DLL UnRegistration)

FileDel(DLL File)

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Posted

That would work fine except that each user would then have to manually click the "I accept" and "OK" button on the dll registration thing (something specific to Redemption, from what it looks like). If I have to have user intervention, I might as well have them click the "Allow access for..." button in Outlook rather than mess around with a dll and that stuff. I'd really like to be able to do something like the following:

DllOpen("redemption.dll")
$distlist = DllCall("Redemption.Create.DistributionList", "Test List")
for $z = 1 to $member[0]
   DllCall("Redemption.AddMember", $distlist)
next
DllCall("Redemption.Save.DistributionList", $distlist)
DllClose("redemption.dll")
  • 3 months later...

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...