Snarg Posted August 19, 2017 Posted August 19, 2017 Hello, It has been quite some time since I have used AutoIt so, please, bear with me. I have never really delved into the IE aspects of AutoIt so I feel very much out of my element. Let me explain what I am trying to do. I have a temperature sensor out doors. It is linked to an Acurite hub. The hub allows me to display the current temperature on my computer. I can set the sensor to send me an alarm when the temperature reaches a certain point but, it is only an email/text alarm. This does not help me when I am asleep as I generally turn notification sounds on my phone off. What I would like to do is have an AutoIt program scan the Acurite Dashboard page every X seconds. It the temp is at, or below, a certain threshold, play a .wav or .mp3 file. The computer volume will be VERY LOUD, so I am certain to hear it. As I have previously stated, I have little to no IT experience so, your help would be greatly appreciated. Below is a screenshot of what I am trying to work on. Any help would be greatly appreciated. Thank you in advance. A little reading goes a long way. Post count means nothing.
Danp2 Posted August 19, 2017 Posted August 19, 2017 A few pointers -- If the site will be already loaded, use _IEAttach to get a reference to the correct tab. Otherwise, use _IECreate to launch the site. Simplest solution is probably to use the IEByXPath UDF to get a reference to the designed element. Once you have the element reference, check it's innerText property Good luck! Latest Webdriver UDF Release Webdriver Wiki FAQs
Snarg Posted August 19, 2017 Author Posted August 19, 2017 @Danp2 Thank you for the reply. Ummm....not sure how to add this UDF. Sorry for looking so dumb. A little reading goes a long way. Post count means nothing.
Danp2 Posted August 19, 2017 Posted August 19, 2017 Save it to a file and then add an #Include line at the beginning of your script that points to this new file. Latest Webdriver UDF Release Webdriver Wiki FAQs
Snarg Posted August 19, 2017 Author Posted August 19, 2017 I seem to have gotten in WAY over my head. Guess I'll just have to listen for a text message. A little reading goes a long way. Post count means nothing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now