I'm sorry, please don't think that I'm lazy cause I'm not, but I just can't figure it out.
What I'm trying to do is make a script for Internet Explorer. What it needs to do is use the webpage that is already open and refresh it constantly. But while doing that, I want it to check (in every refresh) for a sudden change in the page. Because I want to make it detecting the colour red in a specified area. And if the colour red gets detected, I want it to play a long beep sound or a specified wave-sound.
Please, can anyone make it for me or otherwise explain in details how to do such a thing? :S
Refreshing Internet page, loop and checking for changes?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
To refresh the page you can just do:
SetFocus>Internet Explorer*
Press F5
To detect colour in a specified area use the GetPixelColor function. See here for a code snippet for searching a specific rectangle:
http://www.mjtnet.com/forum/viewtopic.php?t=1363
To play a wav file use the PlayWav function:
PlayWav>c:\somewavfile.wav
So all you need now is to dress that up in a loop.
Hope this helps.
To refresh the page you can just do:
SetFocus>Internet Explorer*
Press F5
To detect colour in a specified area use the GetPixelColor function. See here for a code snippet for searching a specific rectangle:
http://www.mjtnet.com/forum/viewtopic.php?t=1363
To play a wav file use the PlayWav function:
PlayWav>c:\somewavfile.wav
So all you need now is to dress that up in a loop.
Hope this helps.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?