Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HtmlDoc
#1
Ok ive got another problem!

This one involves " If(window) not visible..

ok so now, here is my code;

Function CheckWebSite
Code:
Copy      Help
HtmlDoc d.InitFromWeb("http://www.google.com/webhp?sourceid=navclient&ie=UTF-8")
str s=d.GetText
str message.getl(s 2) ;;0 is first line, 1 is second
mes message


I have my own personal website but im using google because i dont want no one to know my personal website but anyways, im trying to have it check something on the website right, so say for example it says this,


have a nice say, ( the macro will then show a message saying this " i wil have a nice day "

now

say if i have this on the websitel


Have a bad day,

i want the macro to execute a message saying this, " have a bad day now "


how do i make it execute those following messages, its so confusing so please someone show me an example

thanks so much.
#2
HtmlDoc d.InitFromWeb("http://www.google.com/webhp?sourceid=navclient&ie=UTF-8")
str s=d.GetText
str message.getl(s 2) ;;0 is first line, 1 is second


if(message = "Have a nice day")
,mes "I will have a nice day"
if(message = "Have a bad day")
,mes "I will have a bad day"


Forum Jump:


Users browsing this thread: 1 Guest(s)