attach a file in chatGPT

I’m having trouble getting ui.vision to attach a file from my PC to chatGPT. It always has trouble finding the button and clicking on the drop-down menu. Does anyone have a solution?

Here is a good post about chatGPT automation. For your task, I created this simple macro with 2 XClick:

PS: As in the linked post, because the ADD drop down menu icon image shows only on mouse over, it can not be captured with the SELECT button. Instead, I used an external screenshot tool for it and then imported the image into ui.vision. If you do this, make sure to add the screen resolution to file name (in my case the screen resolution is 168dpi → add_dpi_168.png as image file name):

add file to chatgpt