My first project: How hard/easy it is to develop a script for this?
Posted: 11 Feb 2017, 15:44
Hello folks! I was pleasantly surprised to discover this great tool and its community. As a contributor of source code to OSS projects myself, I feel at home.
I hope I am not being too ambitious, my first project should behave as follows (BTW, the front end was developed by myself, and thus it is subject to any necessary modifications in order to make it more amenable to AutoHotkey; however, there is a 2nd. backend GUI which is 3rd. party. It starts when any *.pol file is double-clicked):
There is a grid of -say- 100 rows (variable in each run) by 3 columns (fixed). Initially the first column is filled (always), and the objective of the AHK script is to fill columns 2 and 3. They are PDF files, generated by clicks inside the 3rd. party app. The script should "visually" scan the grid (columns 2 and 3) and every time it finds a red "X", it double clicks on the same row, column 1. Windows executes the 3rd. party app, inside it the clicks generate the missing file and immediately (I use real-time folder watch) the red X becomes a green check mark. The red X denotes a file that does not exist yet.
Eventually, at the end of the scan, all grid cells contain a green check mark. In the case in the image below the script should generate all the files in column 2, plus 5 files in column 3.
I guess I should be able to detect the rectangular regions where the {X or Check Mark} icons are located. My doubt is about scrolling, since the 100 or more rows do not fit the screen.
Well, I guess this is enough info. See screenshot of the application written by myself in the attachment.
TIA,
Travis
I hope I am not being too ambitious, my first project should behave as follows (BTW, the front end was developed by myself, and thus it is subject to any necessary modifications in order to make it more amenable to AutoHotkey; however, there is a 2nd. backend GUI which is 3rd. party. It starts when any *.pol file is double-clicked):
There is a grid of -say- 100 rows (variable in each run) by 3 columns (fixed). Initially the first column is filled (always), and the objective of the AHK script is to fill columns 2 and 3. They are PDF files, generated by clicks inside the 3rd. party app. The script should "visually" scan the grid (columns 2 and 3) and every time it finds a red "X", it double clicks on the same row, column 1. Windows executes the 3rd. party app, inside it the clicks generate the missing file and immediately (I use real-time folder watch) the red X becomes a green check mark. The red X denotes a file that does not exist yet.
Eventually, at the end of the scan, all grid cells contain a green check mark. In the case in the image below the script should generate all the files in column 2, plus 5 files in column 3.
I guess I should be able to detect the rectangular regions where the {X or Check Mark} icons are located. My doubt is about scrolling, since the 100 or more rows do not fit the screen.
Well, I guess this is enough info. See screenshot of the application written by myself in the attachment.
TIA,
Travis