I'll dig out some old macro's tomorrow and see what we can do. I have no idea about the alert / email, I don't think you could generate an email from PCOMM.
Something along the lines of.....
Code: Select all
[PCOMM SCRIPT HEADER]
Language = VBSCRIPT
Description = PCOMM
[PCOMM SCRIPT SOURCE]
Option Explicit
autECLSession.SetConnectionByName (ThisSessionName)
'REM This line calls the macro subroutine
subSub1_
Sub subSub1_()
'Once logged in and at the local queue, with all service call listed.....
Do While pcommPS.GetText(5, 26, 3) <> "NEW"
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "ci" 'Screen coordinates 22/28 (Need the syntax)
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[enter]"
autECLSession.autECLPS.Wait 10000 'milliseconds - adjust as required
Loop
MsgBox "New call found"
End Sub