Skip to content

Instantly share code, notes, and snippets.

@mark05e
Created October 6, 2022 01:31
Show Gist options
  • Save mark05e/676817ecd85eee8b717b51f4d26daf5a to your computer and use it in GitHub Desktop.
Save mark05e/676817ecd85eee8b717b51f4d26daf5a to your computer and use it in GitHub Desktop.
; Dial A Number using RingCentral Desktop - mark05e
; ref: https://support.ringcentral.com/app/message/desktop-web/use-keyboard-shortcuts-ringcentral-app.html
; ref: https://www.reddit.com/r/AutoHotkey/comments/s3oxd0/comment/hsmlffe/
; ref: https://gist.github.com/tdalon/84d9caea0368ab0420b81363c2048705
if A_Args[1] = ""
{
NumberToDial := 18337943556 ; https://www.canada.ca/en/environment-climate-change/services/weather-general-tools-resources/telephone-services/recorded-observations-forecasts.html
} else {
NumberToDial := A_Args[1]
}
SetKeyDelay, 10, 10
RcWinIdentifier:="ahk_exe RingCentral.exe"
if WinExist(RcWinIdentifier)
{
ControlFocus Chrome Legacy Window
; Press Alt + D
Send {Alt down}
Send d
Send {Alt up}
Sleep 200
; Press Ctrl + A
Send {LCtrl down}
Send a
Send {LCtrl up}
Sleep 200
; Press Del
Send {Del}
; Send the number to dial
Send %NumberToDial%
Sleep 500
; Hit enter
Send {Enter}
}
@mark05e
Copy link
Author

mark05e commented Oct 6, 2022

Notes

  • Ringcentral window needs to be open

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment