Supportdesk.ahk
From Lucca's Wiki
Jump to navigationJump to search
CoordMode, Mouse, Screen
;Pull your full name from AD nSize:= VarSetCapacity(sFull, 1023) + 1 DllCall("secur32\GetUserNameEx", "Uint", 3, "str", sFull, "UintP", nSize) myName := sFull myFirstName := firstWordOfString(myName)
;HOTKEYS f1::SendRaw, %clipboard% Insert::Reload !Scrolllock::showMousePosition() f8::InputBox, callBackNumber, What is the callback number?, cb:,, Width, Height, 640, 480, English, 0 +f8::Send, cb: ``%callBackNumber%`` !f8::Send, cb: %callBackNumber% ^+f8::Send, %callBackNumber% f9::writeResolution() !f9::feedbackReply() #f9::writeFalsePhishingNote() #+f9::writeRealPhishingNote() #!f9::writeNoAnswerEmail() f11::powerBiLookup() !f6::paste("Thank you for reaching out to WheelHouse IT! My name is " . myFirstName . " and I'll be assisting you today. Allow me to review your ticket, then we can get started.")
/* ;FOOT SWITCH HOTKEYS f13::f6 f13 & f14:: send, ^!+r send, ^{f6} return f14::enter f13 & f15::powerBiLookup() f14 & f15:: send, !s send, ^{f6} return f15:: send, !{delete} send, ^{f6} return */
;Functions: dropFocus(){ WinActivate, ahk_class Shell_TrayWnd } screenshot(){ dropFocus() Send, #!s } ocr(){ ;dropFocus() Send, ^!{Insert} }
showMousePosition(){ MouseGetPos, xc, yc MsgBox, %xc% %yc% }
paste(text){ oldClipboard := ClipboardAll Clipboard := text sleep, 40 Send, ^v Sleep, 30 Clipboard := oldClipboard }
powerBiLookup(){ global Send, ^{f6} Sleep, 60 Send, ^!+w Sleep, 70 WinActivate, Support Pod Clients WinActivate, Microsoft Power BI Sleep, 70 Send, ^f6 ; This focuses the page content if the url bar is focused Sleep, 70 Send, {Escape}{Escape} Send, ^f6 ; This focuses the page content if the url bar is focused Sleep, 70 Send, {Escape}{Escape} Sleep, 70 Send, {f2} Send, +{f2} Send, {Enter} Sleep, 40 Send, {Escape}{Escape} MsgBox, Hit enter when the pod shows up on PowerBI Sleep, 40 Send, ^{f2} Sleep, 40 Send, ^{f2} focusMouse() Sleep, 70 Send, ^{f6} Sleep, 30 Send, ^!s Sleep, 70 Send, {Enter}{Tab} }
firstWordOfString(stringToSplit){ StringSplit, stringArray, stringToSplit, %A_Space% Return stringArray1 }
isAccuity(){ InputBox, whichPhoneNumber, Was the ticket accuity?, Prompt,, Width, Height, 640, 480, English, 0, n phoneNumber := "(954)-474-2204" if (whichPhoneNumber = "y") { phoneNumber := "(954) 713 2601" } return phoneNumber }
writeResolution(){ global InputBox, contactFirstName, What is the contact's name?, Prompt,, Width, Height, 640, 480, English, 0, %contactFirstName% InputBox, clientResolution, What did we help the client with?, Prompt,, Width, Height, 640, 480, English, 0, We're glad we could help you with phoneNumber := isAccuity() resolutionStatement := "Hello " contactFirstName ",`r`n`r`n" clientResolution ".`r`n`r`nShould any other issues arise, please do not hesitate to contact us at support@wheelhouseit.com or give us a call at " phoneNumber ".`r`n`r`nThank you and have a wonderful rest of your day!`r`n`r`nBest Regards, `r`n" myName paste(resolutionStatement) } feedbackReply(){ global InputBox, contactFirstName, What is the contact's name?, Prompt,, Width, Height, 640, 480, English, 0, %contactFirstName% feedbackReply := "Dear " contactFirstName "`r`n`r`nThank you for reaching out and expressing your appreciation for our support. Your feedback is invaluable to us.`r`n`r`nPlease be on the lookout for a ""Feedback Needed"" email, where you can share your thoughts in more detail.`r`n`r`nIf you have any further questions or require additional assistance, feel free to let us know. We're here to help.`r`n`r`nBest regards,`r`n" myName paste(feedbackReply) } writeFalsePhishingNote(){ global InputBox, emailIsUnsubscribed, include unsubscribe text y/n, Prompt,, Width, Height, 640, 480, English, 0, n emailUnsubscribedText := "" if (emailIsUnsubscribed = "y") { emailUnsubscribedText := "I have unsubscribed your email address from their mailing list for you.`r`n`r`n" } InputBox, contactFirstName, What is the contact's name?, Prompt,, Width, Height, 640, 480, English, 0, %contactFirstName% feedbackReply := "Dear " contactFirstName "`r`n`r`nThank you for the report!`r`n`r`nI just took a look at the attached email, and it does not appear to be phishing, however it may be considered spam. Feel free to delete it or move it to junk at your convenience.`r`n`r`n" emailUnsubscribedText "If you have any further questions or require additional assistance, feel free to let us know. We're here to help.`r`n`r`nBest regards,`r`n" myName paste(feedbackReply) } writeRealPhishingNote(){ global InputBox, contactFirstName, What is the contact's name?, Prompt,, Width, Height, 640, 480, English, 0, %contactFirstName% feedbackReply := "Dear " contactFirstName "`r`n`r`nThank you for the report!`r`n`r`nI just took a look at the attached email, and it does appear to be phishing. I blocked the sender's address company-wide.`r`n`r`nIf you have any further questions or require additional assistance, feel free to let us know. We're here to help.`r`n`r`nBest regards,`r`n" myName paste(feedbackReply) } writeNoAnswerEmail(){ global InputBox, contactFirstName, What is the contact's name?, Prompt,, Width, Height, 640, 480, English, 0, %contactFirstName% InputBox, callBackNumber, What is the phone number called?, Prompt,, Width, Height, 640, 480, English, 0, phoneNumber := isAccuity() feedbackReply := "Hello " contactFirstName ",`r`n`r`nI tried to reach you at " callBackNumber " but I wasn't able to get in touch. Please give us a call back at " phoneNumber " so we can assist you.`r`n`r`nThank you and have a wonderful rest of your day,`r`n" myName paste(feedbackReply) }
focusMouse(){ MouseGetPos,,, WinUMID WinActivate, ahk_id %WinUMID% }