Thanks for the code.
After several hours with ChatGPT, I've managed to accomplish little.
My plan was to make the most simple GUI with the most basic add-ons/libraries that captures the incoming data stream as an HPGL, converts it to a post script (a necessary step according to ChatGPT), and then converts it to PNG (or PDF).
The GUI is nice, but after two-days and about ten-hours, I realized it's nothing more than Putty. Today I was informed by ChatGPT that the post script file(s) aren't correct and it's why the PDF comes out blank. Until now, I was ignoring that issue because I was trying to perfect the GUI and thought adding the necessary code to do the conversion was simple. Thought I have the HPGL data/file, it's converting it to PS, and then all I need is to add on converting from PS to PNG or PDF.
Today I tried having it create a script to auto run 7470.exe because I like the color scheme (white background and blue lines). It told me a script to auto run the 7470 was easy, but after two-hours of it sending me in circles, I gave up.
Eventually it told me it could create a script to convert HPGL to post script without needing anything else except Python code, that was about two-hours wasted because it got close, but all I'd get was the screen (no text) the size of a quarter.
The GUI saves the step in Putty of setting up the comm port, capturing the data, saving it as an HPGL, etc... but it still requires manual time consuming labor to convert it in 7470. Ideally I want to capture the data, bing bang, and I have a nice PNG of the screen.
The other thing I was confused at towards the end of my ChatGPT go around in circles chat was that I thought 7470 can create a PNG from an HPGL. Unless I'm doing something wrong, you have to select 'all files' to see an HPGL file, and then you can only save it as a BMP, GIF, etc... Once you close 7470 or try opening another HPGL file, you have to select 'all files' again.
This is the part ChatGPT was struggling with because sometimes 7470 would pop a window asking to add text and throw errors in the script.
I got burnt out and gave up for now, but ideally if I could get 7470 to auto run somehow, then I think it would be pretty cool.