Jump to content
Sign in to follow this  
Sniperleader

Help with Cisco Desktop Agent

Recommended Posts

Sniperleader

Pardon my lack of knowledge, but I must be over thinking this. I have this gui set up for a "easy transfer" button that directly sends keystrokes to our Cisco Desktop Agent.

I have a ton of numbers that are in an excel spreadsheet that I would like to incorporate into this form. I would also like to display an icon for the specific person via Microsoft Lync to see if they are ready, busy ect.

This is my GUI.

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\DRUEHRWEIN0001\Documents\Autoit\Cisco Build\tabbed pages.kxf
$dlgTabbed = GUICreate("Tabbed Notebook Dialog", 727, 330, 243, 200)
GUISetIcon("", -1)
$PageControl1 = GUICtrlCreateTab(16, 40, 412, 256)
$TabSheet1 = GUICtrlCreateTabItem("General ")
$records0 = GUICtrlCreateButton("Test", 16, 176, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records1 = GUICtrlCreateButton("Button4", 16, 216, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records2 = GUICtrlCreateButton("Button4", 16, 256, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records3 = GUICtrlCreateButton("Button4", 117, 216, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records4 = GUICtrlCreateButton("Button4", 117, 256, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records5 = GUICtrlCreateButton("Button4", 117, 136, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records6 = GUICtrlCreateButton("Button4", 16, 136, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$records7 = GUICtrlCreateButton("Button4", 117, 176, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm8 = GUICtrlCreateButton("Button4", 16, 96, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm9 = GUICtrlCreateButton("Button4", 117, 96, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm1 = GUICtrlCreateButton("Button4", 320, 96, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm2 = GUICtrlCreateButton("Button4", 219, 96, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm3 = GUICtrlCreateButton("Button4", 219, 136, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm4 = GUICtrlCreateButton("Button4", 320, 136, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm5 = GUICtrlCreateButton("Button4", 320, 176, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm6 = GUICtrlCreateButton("Button4", 219, 176, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm7 = GUICtrlCreateButton("Button4", 219, 216, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm8 = GUICtrlCreateButton("Button4", 320, 216, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm9 = GUICtrlCreateButton("Button4", 320, 256, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$addm10 = GUICtrlCreateButton("Button4", 219, 256, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet2 = GUICtrlCreateTabItem("Admissions\Records")
$Button24 = GUICtrlCreateButton("Button4", 19, 89, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button25 = GUICtrlCreateButton("Button4", 120, 89, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button26 = GUICtrlCreateButton("Button4", 222, 89, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button27 = GUICtrlCreateButton("Button4", 323, 89, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button28 = GUICtrlCreateButton("Button4", 323, 129, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button29 = GUICtrlCreateButton("Button4", 222, 129, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button30 = GUICtrlCreateButton("Button4", 120, 129, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button31 = GUICtrlCreateButton("Button4", 19, 129, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button32 = GUICtrlCreateButton("Button4", 19, 169, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button33 = GUICtrlCreateButton("Button4", 120, 169, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button34 = GUICtrlCreateButton("Button4", 222, 169, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button35 = GUICtrlCreateButton("Button4", 323, 169, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button36 = GUICtrlCreateButton("Button4", 323, 209, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button37 = GUICtrlCreateButton("Button4", 222, 209, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button38 = GUICtrlCreateButton("Button4", 120, 209, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button39 = GUICtrlCreateButton("Button4", 19, 209, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button40 = GUICtrlCreateButton("Button4", 19, 249, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button41 = GUICtrlCreateButton("Button4", 120, 249, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button42 = GUICtrlCreateButton("Button4", 222, 249, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button43 = GUICtrlCreateButton("Button4", 323, 249, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet3 = GUICtrlCreateTabItem("Billing")
$Button44 = GUICtrlCreateButton("Button4", 19, 97, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button45 = GUICtrlCreateButton("Button4", 120, 97, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button46 = GUICtrlCreateButton("Button4", 222, 97, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button47 = GUICtrlCreateButton("Button4", 323, 97, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button48 = GUICtrlCreateButton("Button4", 323, 137, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button49 = GUICtrlCreateButton("Button4", 222, 137, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button50 = GUICtrlCreateButton("Button4", 120, 137, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button51 = GUICtrlCreateButton("Button4", 19, 137, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button52 = GUICtrlCreateButton("Button4", 19, 177, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button53 = GUICtrlCreateButton("Button4", 120, 177, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button54 = GUICtrlCreateButton("Button4", 222, 177, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button55 = GUICtrlCreateButton("Button4", 323, 177, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button56 = GUICtrlCreateButton("Button4", 323, 217, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button57 = GUICtrlCreateButton("Button4", 222, 217, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button58 = GUICtrlCreateButton("Button4", 120, 217, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button59 = GUICtrlCreateButton("Button4", 19, 217, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button60 = GUICtrlCreateButton("Button4", 19, 257, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button61 = GUICtrlCreateButton("Button4", 120, 257, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button62 = GUICtrlCreateButton("Button4", 222, 257, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button63 = GUICtrlCreateButton("Button4", 323, 257, 89, 33)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
GUICtrlCreateTabItem("")
$name = GUICtrlCreateLabel("name", 440, 62, 30, 17)
$incomingcall = GUICtrlCreateLabel("incomingcall", 440, 102, 62, 17)
$inq = GUICtrlCreateLabel("inq", 615, 278, 18, 17)
$calltime = GUICtrlCreateLabel("calltime", 439, 278, 39, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
  
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd

Func records0()
MsgBox(,"Test","Test",,)
  
  
EndFunc
;ControlSend ("Not Ready - Cisco Agent Desktop","","","{LCTRL}t")
;  sleep(100)
  ; ControlSend ("Transfer a Call","","","56356")
;  sleep(2000)
   ;ControlSend("Transfer a Call","","","{ENTER}")

I made something in AHK that worked, I will post what I had working there. These offices are changing all the time, so I want something that is easily editable.

Here is that.

Gui,+AlwaysOnTop


Gui, Show, x354 y146 h650 w829, Cisco Smart Agent Desktop
Return
ButtonAdvising:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56220{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56220{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRecords-A-K:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56493{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56493{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRecords-L-Z:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56489{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56489{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonHangUp:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^a, Talking - Cisco Agent Desktop
Sleep 100
}
else
{
ControlSend,, ^a, Talking - Cisco Agent Desktop
Sleep 100
}
Return
ButtonAnswer:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^a, Talking - Cisco Agent Desktop
Sleep 100
}
else
{
ControlSend,, ^a, Talking - Cisco Agent Desktop
Sleep 100
}
Return
ButtonFinicalAid:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56300{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56300{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonMelanieStierA-C:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56218{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56218{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLaquandaMillerD-H:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56215{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56215{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRachquelBirdsongI-N:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56745{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56745{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonJeremyLaneO-S:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56459{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56459{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLenelleGillT-Z:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56213{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56213{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonJamieBurford:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56273{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56273{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonSarahVickers:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56406{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56406{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonTiaMadison:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56272{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56272{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonJustinBall:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56296{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56296{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDixieWebb(RN):
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56818{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56818{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDeannaMcCord:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56274{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56274{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonEvelynGrigsby(LPN):
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56882{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56882{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDetnalAssisting:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56622{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56622{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDentalLabTech.:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56244{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56244{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDentalHygiene:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56234{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56234{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonPhlebotomy:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56701{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56701{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonNuclearMedicineTechnology:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56241{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56241{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonJeremyCaudill:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56441{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56441{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonVirginiaCisenius:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54650{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54650{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonMahoganyDobbins:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56384{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56384{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonKendraGolphin:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56724{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56724{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonBrittanyGriffith:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 55204{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 55204{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLaurynHensley:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56792{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56792{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonCoralMorel:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54644{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54644{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonAshleyRowland:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56655{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56655{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonDouglasRuehrwein:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56742{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56742{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonIanSmith:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56509{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56509{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonMarkStapleton:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56356{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56356{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonMadalynWhite:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56658{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56658{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRadiography:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56679{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56679{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRespCare:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56246{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56246{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonSurgicalTechnology:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56615{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56615{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonTracyFeatherly:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56275{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56275{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLindaTerry:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56277{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56277{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLaFounRawlins:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56205{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56205{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonLiseRoemmele(RN):
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56474{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56474{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonBren.Willoughby(LPN):
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56731{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56731{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonMichelleLewis(NurseAid):
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56642{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56642{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonRoyleneLanghorst:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56642{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 56642{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return
ButtonNathanCongleton:
IfWinExist Talking - Cisco Agent Desktop
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54647{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
else
{
ControlSend,, ^t, Talking - Cisco Agent Desktop
Sleep 100
ControlSend,, 54647{enter}, Transfer a Call
Sleep 2000
ControlSend,, {enter}, Transfer a Call
}
Return

I removed the buttons because they contained names. But there must be an easier way to do this. Assigning the button names, and their extensions to the buttons, or a simple search box with a drop down list.

The steps to transferring via the agent is

CTRL + T

(Extention Varible)

Enter

Wait 2seconds

Enter

The memory reading is something that may come later, as well as the Lync intergration. I just need a point in the right direction on pulling the names/extensions effectively.

If it is easier I can move it to an access database to read from instead of excel.

Share this post


Link to post
Share on other sites
rudi

Hi.

Welcome to the forum!

Tip: When giving sample code, simplify it to the minimum required to point out your issue.

What is your problem? I honestly miss it. I guess, you want to have an opportunity to simply change the content of your GUI? You created your GUI using koda (usually good choice for static GUIs). For dynamic GUIs I personally prefer to use "ini file driven" GUI build.

Here is an old example, I wrote for a simple switch management helper GUI.

The INI file:

[BladeCenter 1]
IP=192.168.10.6
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

[BladeCenter 2]
IP=192.168.10.11
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

[F90-Switches]
IP=192.168.2.42
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

[F90-Router]
IP=192.168.2.33
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

[Altbau]
IP=192.168.2.40
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

[TBE]
IP=192.168.2.41
Description=Tooltip Description line 1//Tooltip Description line 2//Tooltip Description line 3

The script:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=Z:\cisco.exe
#AutoIt3Wrapper_Res_Description=GUI gem. INI für Putty Sessions auf Switches
#AutoIt3Wrapper_Res_Fileversion=1.0.2.11
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=2009 (c) by Rudolf Thilo, IT-Beratung Rudolf Thilo
#AutoIt3Wrapper_Res_Language=1031
#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/striponly
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#include <GUIConstantsEx.au3>

Opt("TrayIconHide", 1)
Opt("trayicondebug", 0)
Opt("wintitlematchmode", 2) ; match any substring

Dim $Putty = @TempDir & "\PuTTY.EXE"
FileInstall("Z:\putty.exe", $Putty, 1) ; 1=overwrite


$RGB_UP = 0x9CBCAA ; Button Farbe, wenn der Switch UP ist
$RGB_DOWN = 0xFF8A8A ; Button Farbe, wenn der Switch DOWN ist

#Region INI einlesen
$ini = StringTrimRight(@ScriptFullPath, 4) & ".ini"
If Not FileExists($ini) Then IniNotFound()
$sections = IniReadSectionNames($ini)
Dim $CiscoArr[$sections[0] + 1][5] = [[$sections[0]]]
For $i = 1 To $CiscoArr[0][0]
$CiscoArr[$i][0] = $sections[$i]
$CiscoArr[$i][1] = IniRead($ini, $sections[$i], "IP", "!Not Found!")
$CiscoArr[$i][2] = StringReplace(IniRead($ini, $sections[$i], "Description", "!Not Found!"), "//", @CRLF)
Next
#EndRegion INI einlesen

If $cmdline[0] > 0 Then ProcParams()

#Region GUI erstellen
$w = 200
$h = $CiscoArr[0][0] * 25 + 25 + 25 + 25 + 35 ; 25 pro Control + (Label top + button + label unter button + Rand unten)
GUICreate(stringtrimright(@ScriptName,4) & " " & FileGetVersion(@ScriptFullPath), $w, $h)
GUICtrlCreateLabel("Putty auf Cisco Switches starten", 15, 15, $w - 30)
Opt("GUICoordMode", 2) ; cell relative
For $i = 1 To $CiscoArr[0][0]
$CiscoArr[$i][3] = GUICtrlCreateButton($CiscoArr[$i][0], -1, 5)
ConsoleWrite($CiscoArr[$i][2] & @CRLF)
$DescrHeader=StringLeft($CiscoArr[$i][2],StringInStr($CiscoArr[$i][2],@CRLF)-1)
GUICtrlSetTip($CiscoArr[$i][3], StringTrimLeft($CiscoArr[$i][2],StringInStr($CiscoArr[$i][2],@CRLF)+1), $DescrHeader, 0, 1)
Next
$Refresh = GUICtrlCreateButton("... PING auf Switches ...", -1, 15)
GUICtrlCreateLabel("[ESC] Taste zum Verlassen drücken", -1, 10)
GUISetState(@SW_SHOW)
#EndRegion GUI erstellen

CheckAliveAndOpens()
AdlibRegister("CheckAliveAndOpens", 10000)

While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Refresh
CheckAliveAndOpens()
Case Else
For $i = 1 To $CiscoArr[0][0]
If $msg = $CiscoArr[$i][3] Then
Run($Putty & " -telnet " & $CiscoArr[$i][1])
ChangeTitle($i)
GUICtrlSetState($CiscoArr[$i][3], $GUI_DISABLE)
GUICtrlSetData($CiscoArr[$i][3], $CiscoArr[$i][0] & " - offen")
EndIf
Next
EndSelect
WEnd





Func ProcParams()
Local $AllOK = True
Local $ThisParamOK = True

If $cmdline[1] = "alle" Then
For $i = 1 To $CiscoArr[0][0]
Run($Putty & " -telnet " & $CiscoArr[$i][1])
ChangeTitle($i)
Next
Exit
EndIf

$AllOK = True
For $i = 1 To $cmdline[0]
For $k = 1 To $CiscoArr[0][0]
If $cmdline[$i] = $CiscoArr[$k][0] Then
Run($Putty & " -telnet " & $CiscoArr[$k][1])
$ThisParamOK = True
ChangeTitle($i)
ExitLoop
EndIf
$ThisParamOK = False
Next
If $ThisParamOK = False Then $AllOK = False
Next
If $AllOK Then Exit ; alle angegebenen Parameter wurden korrekt abgearbeitet, -> exit = keine GUI.
Return $AllOK
EndFunc ;==>ProcParams

Func ChangeTitle($i)

ConsoleWrite($CiscoArr[$i][0] & " = Alias" & @CRLF)
ConsoleWrite($CiscoArr[$i][1] & " = IP" & @CRLF)
Opt("wintitlematchmode", 1) ; *NUR* Ändern, wenn linksbündig noch die IP steht.
If WinWait($CiscoArr[$i][1],"", 3) Then ; in 2 Sekunden muss das Putty Fenster auf sein.
WinSetTitle($CiscoArr[$i][1], "", $CiscoArr[$i][0] & " - " & $CiscoArr[$i][1])
Return True
Else
Return False
EndIf
EndFunc ;==>ChangeTitle



Func CheckAliveAndOpens()
opt("wintitlematchmode",2) ; substring search
GUICtrlSetState($Refresh, $GUI_DISABLE)

For $i = 1 To $CiscoArr[0][0]
GUICtrlSetData($Refresh, "..PING auf " & $CiscoArr[$i][0])
Ping($CiscoArr[$i][1], 30)
If @error > 0 Then
$CiscoArr[$i][4] = False
GUICtrlSetBkColor($CiscoArr[$i][3], $RGB_DOWN)
Else
GUICtrlSetBkColor($CiscoArr[$i][3], $RGB_UP)
EndIf
If WinExists($CiscoArr[$i][1]) Then
GUICtrlSetState($CiscoArr[$i][3], $GUI_DISABLE)
GUICtrlSetData($CiscoArr[$i][3], $CiscoArr[$i][0] & " - offen")
ChangeTitle($i)
opt("wintitlematchmode",2)

Else
GUICtrlSetState($CiscoArr[$i][3], $GUI_ENABLE)
GUICtrlSetData($CiscoArr[$i][3], $CiscoArr[$i][0])
EndIf
Next
GUICtrlSetState($Refresh, $GUI_ENABLE)
GUICtrlSetData($Refresh, "PING now!")

EndFunc ;==>CheckAliveAndOpens


Func IniNotFound()
MsgBox(48, "Error", "couldn't read INI file " & $ini & "!" & @LF & _
"An example INI file will be created in your TEMP folder. This program expects such an INI file in it's folder.")
FileInstall("c:\temp\cisco.ini", @TempDir & "\Sample.ini",1)
Run("notepad " & @TempDir & "\Sample.ini")
Exit
EndFunc ;==>IniNotFound

The important one for dynamic GUI is that one:

Opt("GUICoordMode", 2) ; cell relative

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×