''==== COLLECT DEFAULT INFORMATION FROM THE ACTIVE DIRECTORY ====
SetCompanyName Acme Corporation
Progress 0, Collecting your
information from the coporate database., Please
wait...
Set UserName = [UserFullName]
Set Title = [UserTitle]
Progress 25
Set Company = [UserCompany]
Set Street = [UserStreet]
Set City = [UserCity]
Progress 50
Set State = [UserState]
Set ZipCode = [UserZip]
Set DirectNumber = [UserIPPhoneNo]
Progress 75
Set MobileNumber = [UserMobileNo]
Set FaxNumber = [UserFaxNo]
Set EmailAddress = [UserEMailAddress]
RemoveProgress
''==== CHECK FOR EMPTY ACTIVE DIRECTORY ATTRIBUTES ====
If VarIsEmpty Company Or VarIsEmpty Title Then
ShowErrorMessage Information is missing in our central employee
registry. Please contact the IT department.
Exit
End If
''==== CONFIGURE FIELDS AND APPEARANCE ====
SetNextWindowSize 500, 500
SetMenuHeaderIcon Mouse
SetMultiInputOptional MobileNumber
SetMultiInputBackColor #ADFF2F, Street,
City, State, ZipCode, DirectNumber, FaxNumber
SetMultiInputBackColor #F0E68C,
MobileNumber
CreateMultiInputLabel UserName, Title,
Company, EmailAddress
SetMultiInputCaption "Verify your data is correct, make any necessary
changes.[Return]Green = Mandatory fields Yellow = Optional fields"
''==== SHOW THE INPUT FORM ====
MultiInput Acme Outlook Signature
Generator,UserName|Full
Name,EmailAddress|E-mail,Title|Title,Company|Company,Street|Street,City|City,_
State|State,ZipCode|Zipcode,DirectNumber|Direct
Number,MobileNumber|Mobile,FaxNumber|Fax Number
''==== CHECK CANCEL ====
If Not MultiInputCancelled Then
''==== GENERATE SIGNATURE - SWICTH BETWEEN TWO BASED ON WHETHER MOBILE
NUMBER EXISTS ====
SmallSplash Generating Outlook Signature
If Not VarIsEmpty MobileNumber Then
InstallSignature Signature-Mobile.docx,Acme
Signature
Else
InstallSignature Signature.docx,Acme Signature
End If
SetNewEmailSignature Acme Signature
RemoveSmallSplash
''==== PREVIEW THE SIGNATURE BY OFFERING TO OPEN AN EMPTY EMAIL ====
If Ask "Your new signature has been created and set for you.", Outlook
Signature Created, Mouse, Preview Signature, Exit Then
Launch Outlook.exe /c ipm.note
End If
End If