I want to automate ChatGPT using AutoHotkey (Chrome.ahk). I can successfully input values into the text field, but the "Send" button is not active. I've tried various approaches, but unfortunately, none have been successful.
Could you please assist me?
I would greatly appreciate it.
Thank you!
Code: Select all
js=
(
document.getElementById("prompt-textarea").value = "Hallo"
document.getElementById("prompt-textarea").dispatchEvent(new Event("change"))
)
PageInst.Evaluate(js)