to check local servers online seen wan, have php script on remote web site tests servers every 5 minutes, , report returned local browser. if wrong, javascript changes title. ahk script should recognise title change within 10 seconds, , bring browser window top.
#noenv ; recommended performance , compatibility future autohotkey releases. sendmode input ; recommended new scripts due superior speed , reliability. setworkingdir %a_scriptdir% ; ensures consistent starting directory. ; ^f1::send dave kimble ... ; settitlematchmode 2 loop { ifwinexist, server error { winactivate return } sleep 10000 return }
the php script works ok, ahk script doesn't seem recognise title change. indeed doesn't seem clock cpu time @ after initial load. doing wrong?
as loop reaches second return
, loop exit.
you have move ^f1::send dave kimble
after loop since prevents script reaching loop statement.
Comments
Post a Comment