Continuing the series of articles on using ChatGPT as a software developer. In this article, I will show you how to ask ChatGPT to create a script that performs a click at a specific position via the mouse using a hotkey. Here is the initial version of the chat where I ask what I can use to do it, and in the subsequent chat, I finalize the script (copy the latest version of the script by clicking "copy code" in the upper right corner of the script window in the chat, and paste it into a new text file, naming it, for example, "2clicks.ahk"). They are in Russian, but you can ask Google Chrome to translate them into your language.
Now, you can run the script by double-clicking it if you have installed the AutoHotKey v2 tool. You can assign positions to click using "Alt-F5" and "Alt-F6", and click on them afterward using "F5" and "F6", respectively. You can change the hotkeys in the script, adjust their numbers, etc. To stop the script, unload it via the "H" icon in the tray area or use "Suspend Hotkeys" to temporarily disable the hotkeys.
Do you want help using ChatGPT? Drop me a message at virtualvat@gmail.com!