Automating refreshing and checking data in a proprietary program - python

I am pretty unfamiliar with the automation environment but I'm looking to create a solution for a problem I'm having right now.
There is a proprietary application on my work laptop that shows me some relevant information. Above the table is a refresh button that I have to click as often as possible to refresh this table until a new row shows up which I have to process.
My first approach to this was to create a small .exe in Python that would control the mouse and click the refresh button on an interval and then take a screenshot of the part of the application where the new row would show up and compare it to a screenshot without the row to check that there is a difference.
The issue with that approach is that I would be unable to use the laptop when this program would run as it would control the mouse and the window would have to be in focus.
What other approach could I take to tackle this?

Related

Trying to find way to automate clicking button process on a company application with out images

I have a script that is used to login in to a company-made application and click the right buttons like "continue", or "ok", etc. to perform a certain process. However, I have had to use screenshots of these buttons to click in order to do this using pyautogui. Is there any package or way to automate this process without using images. Maybe it can detect the text of the button and click it. I do not have identifiers for the buttons available and no access to the code/info behind the application. Let me know if you have any ideas. Thanks!
I have a few questions that may be helpful:
Does the layout of the buttons change? If it's always the same you can just program the correct locations and timing and not worry about reading the screen.
If you really have to read the screen, look into optical character recognition (ocr).
Is the application keyboard accessible? If so, using Tab and Enter to activate the buttons is simpler than controlling the mouse. Also, if it was made by superstars you can use find (ctrl-F) to search for the text on the buttons and go to them.
This answer is pretty vague, but I can only be as specific as the question asked.

how do i take scrolling window screenshot using python

i have been working on Altreyx workflows (https://help.alteryx.com/).
As a part of my project i want to document the workflow which are huge and taking screenshot of those workflows is a tough job.
I was thinking if anything could be done using python or C++ to automate a scrolling window screenshot, the screenshot window should be able to move up and down.
Any help or leads will be appreciated.

Auto refresh window to using python

I would like to make a program for make my window refresh every 10 min. i'm new to programming and currently exploring python technology
My machine is connected with pc based software which will test the product
The software tend to be freeze and system hang-- we need to restart the pc to solve this issue
idea:
I want to make a python program to auto run and keep click refresh button every 10min
my idea is to keep window always ready to receive data
I just beginning to explore below code ( very simple)
import mouse
#left click
mouse.click("right")
mouse.wheel(-3)
# right click
mouse.click("left")
How do I access the "refresh" option on the right click?
is my idea in not particle?
Your question is very unclear, so I'm just guessing you are in a browser window and want to refresh the site (right?)
Using the mouse package to do so will be very hard, therefore I suggest you use the keyboard-package, which is even from the same author.
import keyboard
keyboard.send("F5")

How can I start an application(zoom client) with python?

A week ago, I built an application to automate the process of joining the daily Zoom meetings using pyautogui https://pyautogui.readthedocs.io/en/latest . To start zoom, I would make my program click on the coordinates where zoom shortcut is located on taskbar. It was fine until today. Yesterday, by mistake, I had changed the taskbar icons' order. Therefore, my whole program crashed. So, I want to know if there is a better way of starting the zoom application with python.

How to find Automation_Id's using pywinauto?

I have java application. I want to find automation_id's for each control. I used print_control_identifiers() and dump_tree(). But, it took lot of time (more that 2 hours).Is there any possible way to get automation_id's within in small time? Also, with my application after clicking on button one window is opened. How can I find automation_id's for this window only?
use Inspect.exe to find automation id's of any control

Categories

Resources