Jump to content

Recommended Posts

Posted

Hi boardmembers

I currently have a script in Autoit that gives me an audible warning when the script hits a road block and hangs. What I would like to do is have the script send an email when the same error occurs.

Below is my current code block that makes the audible. I don't need the email to keep emailing me. I just want to do it once an error occurs then after I clear and it errors again to resend a new email on that event.

Any assistance would be greatly appreciated

Thanks

If $res = 0 Then
    while $res = 0  
     $res = WinWaitActive("Save As","",$timeOutInSeconds)
     SoundSetWaveVolume (100)  ;set volume to 100%
     Beep(1000, 1000)
     SoundPlay("C:\Program Files\Microsoft Office\Office12\MEDIA\APPLAUSE.WAV")
     ;SoundPlay(@WindowsDir & "\media\tada.wav",1)
    wend
Posted

gripper,

Search the forum. There are many examples of sending email.

You can implement one the the examples by making it a function and driving the function whenever you sound the audible signal.

Good Luck,

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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
×
×
  • Create New...