I want to do this on chrome browser. But I cannot change the codemirror text.
Here is what I have tried so far:
Code: Select all
^+g::
Send ^c
ChromeInst := new Chrome("ChromeProfile", "https://example.com", "--headless")
ChromeInst.Call("Page.navigate", {"url": "https://gist.github.com/"})
ChromeInst.WaitForLoad()
ChromeInst.getElementsByClassName("CodeMirror cm-s-github-light").innerHtml=Clipboard
ChromeInst.getElementsByClassName("btn-secret")[0].Click()
ChromeInst.WaitForLoad("")
Clipboard := PageInst.getElementsByClassName("js-url-field")[0].value
Send, ^v
Return