While loop
I'm trying to make a wireless status notification system based on the wireless icon in the system tray.
The way it'll work is it will run an be idle until it sees the Wireless Radio Disconnected symbol (the computer with an "x" next to it). When it sees this it will give me a popup.
Then when it sees the Acquiring IP symbol (the computer with the bouncing ball), it gives me another popup.
Then when it sees the Online symbol (the computer with the wireless symbol) it will give me a third popup and start all over again, waiting for the Disconnected sign.
I figured I needed a while loop, but for some reason it gives me a fake Disconnected popup in the beginning, and then once I go through the enire program (Disconnected, Acquiring, Online), it just loops all three popups.
Here is the program so far:
setAutoWaitTime
while(1):
while not exists(
sleep(0.5)
popup("Internet connection has been lost.")
wait("5.png")
popup(
wait("J.png")
popup(
If you could help, that would be great because this has been bugging me for forever.
Thanks a ton,
Dylan
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Dylan Moreland for more information if necessary.