#1 11 Jun 2010 16:53

arenas
Member
Registered: 01 May 2009
Posts: 11

txt box

hi smile

pls i have to handel inside in the txt box (textarea).

how i have to do correctly? : delet lines.......
on this page (down)
http://pagesperso-orange.fr/arenas/mmc/mmc_athome.html

my best regard !
arnold

the script is:

$URL = new-object -Com internetexplorer.application
$URL.navigate2("http://athome.myminicity.com")
while ($URL.busy) {
sleep -milliseconds 70
}
$URL.Visible = $false
$text = $URL.document.body.innertext
$DATE = get-date -format "dd-MM-yyyy - HH:mm:ss"
$text1 = $text.replace(" Your Flash player is outdated. Click here to install the latest version","")
$text2 = $text1.replace("Your Flash player is outdated. Click here to install the latest version ","")
$text3 = $text2.replace("Ranking Find a city Build my city","")
$text4 = $text3.replace(" Nickname:Security code: ","")
$text5 = $text4.replace("Message:","")
$text6 = $text5.replace("To improve AtHome, you only have to give the following links to your friends or post them in","")
$text7 = $text6.replace("your blog. Each different click will improve AtHome! 1Increase population","")
$text8 = $text7.replace("http://athome.myminicity.com 2Increase industry http://athome.myminicity.com/ind 3Improve ","")
$text9 = $text8.replace("the transport network http://athome.myminicity.com/tra 4Increase security ","")
$text10 = $text9.replace("http://athome.myminicity.com/sec 5Improve environment http://athome.myminicity.com/env ","")
$text11 = $text10.replace("6Increase business http://athome.myminicity.com/com","")
$text12 = $text11.replace(" More games: AlphaBounce Hammerfest Naturalchemist Dinoparc KadoKado ","")
$text13 = $text12.replace(" DinoRPG ","")
$text14 = $text13.replace("© 2007   ","")
$text15 = $text14.replace("Write in the News Bulletin","")
$blog = "<p> </p><textarea rows = 10 cols = 90 >$DATE $text15</textarea>"
[void]$URL.QUIT()

Offline

Board footer

Powered by FluxBB