But now they changed the page using ASP, so I can no longer detect the text string in the HTML-code. So instead of copying the html-code, I want to copy the text displayed on the webpage so I can search that instead. But how do I do that? How can I change the code so that the alarm goes of when the text "Just nu" is NOT on the page?
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
lookfor=just nu ; The exact phrase is "Just nu" so maybe there is case sensitivity as well...
times=0
loop
{
loop
{
sleep, 1000
UrlDownloadToFile, http://www.stenafastigheter.se/sok-fastigheter/lediga-bostader/Sidor/default.aspx?ort=Stockholm, tmp.txt
FileRead, text, tmp.txt
stringgetpos, pos, text, %lookfor%
if (pos=-1)
break
}
soundplay, alarm.wav, wait
if (times=0)
{
run,http://www.stenafastigheter.se/sok-fastigheter/lediga-bostader/Sidor/default.aspx?ort=Stockholm
times=1
}
}Any input how to get this to work is appreciated.
/merc1




