AutoHotkey (Chrome.ahk) input values

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Loop
Posts: 171
Joined: 07 Jan 2019, 14:51

AutoHotkey (Chrome.ahk) input values

Post by Loop » 02 Nov 2023, 10:31

Hello,

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)

Return to “Ask for Help (v1)”