At work we have a nightly process that happens every night and it's a repetitious process that is basically going through a list of DMS10's and clearing all the PED alarms. It is a RDP within a RDP type deal, very slow and cumbersome, and no direct access to the console of the DMS switches. You type and it can take multiple seconds for a character to show up.
For each switch the process is the same though.
Basically, click in a search box, type the CLLI code, click the button that shows up in the search matching this DMS, wait for the console to initialize, type ****, wait for > prompt etc... then close the window and repeat. So I'd just preprogram the CLLI list in the app, that part is easy.
I want to look at somehow automating this whole process. What kind of coding should I be looking at here? I'm thinking a way to scan what's on the screen (the consoles may not always open up at the same spot or take the same amount of time to get to a certain prompt). How would this be done? Idealy I'd want to be able to take a screenshot, and then just have my app look for a section of a png within the screen, and move the cursor in relation to the location that png was found on the screen. Or is there another way to do it? Think, auto aim bots for games. How do those work? They look for the head (a graphic that it knows) and moves the cursor to it. How would I code this in a windows environment? Because of the nature of the RDP within a RDP whatever method I use would need to look at the raw image of the screen so it would need to happen at a low enough level I would think.
Or am I perhaps taking the wrong approach here, is there perhaps an easier way to automate this? I've automated things like this before where the windows/dialogs always landed at the exact same spot and took the same amount of time to show up, but this system is different due to stuff not always opening at the exact same spot and taking the same time to open so it would have to constantly be scanning and looking for certain elements before it proceeds.
For each switch the process is the same though.
Basically, click in a search box, type the CLLI code, click the button that shows up in the search matching this DMS, wait for the console to initialize, type ****, wait for > prompt etc... then close the window and repeat. So I'd just preprogram the CLLI list in the app, that part is easy.
I want to look at somehow automating this whole process. What kind of coding should I be looking at here? I'm thinking a way to scan what's on the screen (the consoles may not always open up at the same spot or take the same amount of time to get to a certain prompt). How would this be done? Idealy I'd want to be able to take a screenshot, and then just have my app look for a section of a png within the screen, and move the cursor in relation to the location that png was found on the screen. Or is there another way to do it? Think, auto aim bots for games. How do those work? They look for the head (a graphic that it knows) and moves the cursor to it. How would I code this in a windows environment? Because of the nature of the RDP within a RDP whatever method I use would need to look at the raw image of the screen so it would need to happen at a low enough level I would think.
Or am I perhaps taking the wrong approach here, is there perhaps an easier way to automate this? I've automated things like this before where the windows/dialogs always landed at the exact same spot and took the same amount of time to show up, but this system is different due to stuff not always opening at the exact same spot and taking the same time to open so it would have to constantly be scanning and looking for certain elements before it proceeds.