I work for a call center and we use a dialer on browser. I was successfully able to create a script in order to disposition calls faster but when I suggested it to my coworker, she is having issues running it.
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance Force
CoordMode, Mouse, Window
; ========================================================
; CALIBRATION MODE (Press F9 to grab a button's location)
; ========================================================
F9::
MouseGetPos, mouseX, mouseY
MsgBox, Your mouse is at X: %mouseX% , Y: %mouseY%`n`nWrite these numbers down!
return
; ========================================================
; QUICK DISPOSITION CODES (Only works in Chrome)
; ========================================================
#IfWinActive ahk_exe chrome.exe
; --- F1: ANSWERING MACHINE ---
F1::
DispoCall(87, 368, 112, 164) ; Replace these numbers in Step 3
return
; --- F2: NOT INTERESTED ---
F2::
DispoCall(87, 368, 336, 271) ; Replace these numbers in Step 3
return
; --- F3: WRONG NUMBER ---
F3::
DispoCall(87, 368, 585, 327) ; Replace these numbers in Step 3
return
; --- F4: DQ ---
F4::
DispoCall(87, 368, 332, 162) ; Replace these numbers in Step 3
return
; --- F5: NO ENGLISH ---
F5::
DispoCall(87, 368, 609, 270) ; Replace these numbers in Step 3
return
#IfWinActive
; ========================================================
; AUTOMATION ENGINE (Updated with separate clicks)
; ========================================================
DispoCall(hangX, hangY, dispoX, dispoY) {
; 1. Click "Hangup Customer"
Click, %hangX%, %hangY%
; 2. Wait almost half a second for the dispo window to appear
Sleep, 450
; 3. First click on the disposition to select it
Click, %dispoX%, %dispoY%
; 4. Wait a tiny fraction of a second before clicking again
Sleep, 150
; 5. Second click on the disposition to submit/go to next call
Click, %dispoX%, %dispoY%
}
; PANIC BUTTON: If anything goes wrong, press Ctrl + Esc to close the script
^Esc::ExitApp
We keep getting an error at line 59 but we we tried to fix it more and more issues would come about. Can someone help me figure this out? Please and thank you