Hi. I want a shortcut that copies marked text and feeds it back into ChatGPT and clicks enter.
Hitting tab x times is one way. However, the number of tabs are different each time.
Any ideas how to jump to the text input field shown below?
Simplify dialog with ChatGPT
- Krutstugan
- Posts: 22
- Joined: 26 May 2021, 09:56
Re: Simplify dialog with ChatGPT
python + selenium would be better,
but in the land of ahk, there is a chrome.ahk library.
but in the land of ahk, there is a chrome.ahk library.
Re: Simplify dialog with ChatGPT
For reference, besides Chrome.ahk, it is also possible to use AHK with Selenium (although not overly popular, I guess). Or you could use instead Rufaydium. Or possibly some kind of javascript injection (like eg teadrinker has shown in the past).
-
- Posts: 502
- Joined: 03 Dec 2018, 20:02
Re: Simplify dialog with ChatGPT
No one's mentioning the amazing UIA_Interface.ahk? It's much simpler than all above.
Re: Simplify dialog with ChatGPT
Yeah, might be sufficient for this use case. I still haven't used UIA yet, but afaik the specialized tools can do more advanced browser automation (headless mode, automating inactive tabs, ...).
If that's needed here, or if this is all about working on an active tab, we don't really know yet. If it's about the active tab, teadrinker's technique (look for RunJsFromChromeAddressBar() or similar) might actually be the easiest solution. I think it uses Acc (accessibility) functions, so it's loosely related to UIA. Not sure, if a v2 version has been posted yet.
If that's needed here, or if this is all about working on an active tab, we don't really know yet. If it's about the active tab, teadrinker's technique (look for RunJsFromChromeAddressBar() or similar) might actually be the easiest solution. I think it uses Acc (accessibility) functions, so it's loosely related to UIA. Not sure, if a v2 version has been posted yet.
-
- Posts: 502
- Joined: 03 Dec 2018, 20:02
Re: Simplify dialog with ChatGPT
To be honest, it's sufficient for most of the use cases. Average users just need to automate the browser like they automate the desktop.
I've used RunJsFromChromeAddressBar quite intensively in the past and loved it. Unfortunately it needs updating recently because Chromium browsers no longer expose the address bar to Acc and we now have to use UIAutomation to control the address bar anyway. Also writing the Javascript to evaluate is more complicated than writing UIA commands. Not to mention Descolada's UIAViewer provides a macro creator which generates those commands for you. UIA should be the first choice for new users.
I've used RunJsFromChromeAddressBar quite intensively in the past and loved it. Unfortunately it needs updating recently because Chromium browsers no longer expose the address bar to Acc and we now have to use UIAutomation to control the address bar anyway. Also writing the Javascript to evaluate is more complicated than writing UIA commands. Not to mention Descolada's UIAViewer provides a macro creator which generates those commands for you. UIA should be the first choice for new users.
Re: Simplify dialog with ChatGPT
Thank you, good to know
Re: Simplify dialog with ChatGPT
ahk is NOT popular, and a small niche in it is EVEN more less popular. (not unpopular)
Who is online
Users browsing this forum: Google [Bot], Idge_24, kunkel321, niCode, wjt936826577 and 29 guests