; Ctrl+1 to set the clipboard recvovery link ^1:: { SendText("https://accounts.google.com/signin/v2/recoveryidentifier?flowName=GlifWebSignIn&flowEntry=AccountRecovery") return } ; Ctrl+2 to set the clipboard name change ^2:: { SendText("https://myaccount.google.com/profile/name/edit") return } ; Ctrl+3 to set the clipboard to login gmail ^3:: { SendText("https://accounts.google.com/ServiceLogin") return } ; Ctrl+4 to navigate dropdown list ^4:: { SendText("https://myaccount.google.com/recovery/email") return } ; Ctrl+5 to navigate dropdown list ^5:: { SendText("https://myaccount.google.com/two-step-verification/authenticator") return } ^6:: { SendText("https://myaccount.google.com/two-step-verification/phone-numbers") return } ^7:: { SendText("https://myaccount.google.com/signinoptions/two-step-verification") return } ^8:: { SendText("https://myaccount.google.com/apppasswords") return } ; Ctrl+0 to set the clipboard to a specific URL ^0:: { SendText("https://myaccount.google.com/two-step-verification/authenticator") return } ^\:: { ; Ctrl+2 as the shortcut ; Clear the clipboard initially Clipboard := "" Sleep(100) ; Allow time for the clipboard to clear ; Select all text (Ctrl+A) and copy it (Ctrl+C) Send("^a") Sleep(100) ; Allow time for the selection Send("^c") Sleep(100) ; Allow time for the clipboard to update ; Wait for clipboard content if !ClipWait(1) { ; Wait up to 1 second for clipboard content MsgBox("Failed to update clipboard. Please try again.") return } ; Extract the text part explicitly try { originalText := Clipboard if (originalText == "") { MsgBox("Clipboard is empty. Please ensure text is selected.") return } } catch { MsgBox("Error accessing clipboard content.") return } ; Perform the string replacement modifiedText := StrReplace(originalText, "https://myaccount.google.com/profile/name/edit", "https://accounts.google.com/u/0/recovery/summary") ; Set the clipboard to the modified text and send it Clipboard := modifiedText Sleep(100) ; Wait a short time to ensure clipboard is ready Send("^v") ; Paste the modified text }