Londen Insurance: AS400 Macro Design - Custom Screen Pop

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Londen Insurance

AS400 Macro Design – Custom Screen Pop

1. Step 1: Application Server


a. Right click the Application Server icon in the taskbar and select Settings.
b. Under the Phone Manager tab, click the Set Dial Patterns button.
c. In the Local Area Codes textbox, type 602,623,480.
d. In the outbound Prefixes box, type 1.
e. Change the Max Endpoint Length to 3.
f. Uncheck the Dial Primary Local Area Code box.

g. Click Save, and then Save again.

2. Step 2: Macro Design


a. Right click the Phone Manager icon in the taskbar, select Settings, and click Macro
Design.
b. Click the Create New Macro button in the bottom corner of the dialog box.
3. To create new Macro:
a. In the Name field, Type AS400.
b. In the Script Language field, select Vbscript.
c. Leave the Enable Macro box unchecked, as well as the Enable Hot Key box.
d. In the Macro Text box, type this code:

PhoneControl.SetWindowFocus "Session"
PhoneControl.SendKeysToWindow "1", "Session"
PhoneControl.SendKeysToWindow "{Enter}", "Session"
PhoneControl.SendKeysToWindow "{F4}", "Session"
PhoneControl.SendKeysToWindow "{F4}", "Session"
PhoneControl.SendKeysToWindow "{PGDN}", "Session"
PhoneControl.SendKeysToWindow "1", "Session"
PhoneControl.SendKeysToWindow "{Enter}", "Session"
PhoneControl.SendKeysToWindow PhoneControl.CLI, "Session"
PhoneControl.SendKeysToWindow "{Enter}", "Session"
e. Next, click Save.
4. Create Custom Button
a. Right click on the Call Banner icon on the side of your screen, and select Settings.
b. Under the Field Choice tab, in the right column titled Banner Buttons, check the Custom
Button box.
c. Click on the Custom Button icon.
d. In the Button tab, type the button text.
e. In the Action tab, select Run Macro from the Action drop down menu, and then select
the AS400 macro you created in Macro Selection drop down menu.
f. Click Save, and then Save again in the Button Toolbar Settings box.
5. Enable Macro
a. Right click Phone Manager icon in Taskbar, go to Settings, and click Application Settings.
Navigate to the Macros tab.
b. Check the box titled Enable Event Driven Macros
c. Copy the path in the Macro File Path box, and paste into Windows Explorer.
d. Copy the MacroConfig file and the most recent text file onto your network’s shared
drive.
e. Copy the new URL from the macro files’ network location and paste into the Macro File
Path box in the Phone Manager Application Settings box.
6. Test macro.

You might also like