Created
October 6, 2022 01:31
-
-
Save mark05e/676817ecd85eee8b717b51f4d26daf5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes
Changelog