Code for reviewing loading bar through out the script
Hi,
I'm working on automating a process, the script is almost done! but the problem is when sikuli is alternating between the difference fields of the software -I have to mention that the software is oracle and old as shit- the loading bar starts loading to show that oracle is still processing or busy. I need to write a code that detects when the loading bar starts loading so Sikuli can pause the script and wait for it then continue where it left once the loading bar stops loading, here is what i have so far;
r = Region(
Settings.
def changed(event):
print "something changed in ", event.region
for ch in event.changes:
sleep(1)
for ch in event.changes:
wait(
Settings.
event.
print "Stopped Loading"
r.highlight(1)
print "Checking loading bar"
r.onChange(25, changed)
Settings.isChanged = False
r.observe(
if Settings.isChanged:
print "Status: Loading"
else:
print "Status: Not Loading"
I have almost zero knowledge about coding i'm fairly new at this but i know this code works cause i tested it out. So i just need help knowing where to place it in the script cause I need it to constantly be checking the loading bar through out the entire script.
Thanks in advance!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: