Jump to content
Sign in to follow this  
jacq

SOLVED:Copy source code from site.

Recommended Posts

jacq

Welcome.

This is code

#include <String.au3>
#include <Inet.au3>

$String = (_INetGetSource('http://www.teleman.pl/program-tv/stacje/Discovery-Science'))

$String_Start = 'class="prog_title">'
$String_End   = '</a><div class="genre">'

If StringInStr($String, 'title="trwa"') Then
    $Array = _StringBetween($String, $String_Start, $String_End)
    $ConsoleWrite = ($Array[0] & @LF)
MsgBox(64, "Info", $ConsoleWrite)

EndIf

but the Polish characters do not work you may know how to change it.Help!!!

I used this code but not working

#include <Clipboard.au3>

_ClipBoard_SetData($ConsoleWrite, $CF_UNICODETEXT)
Edited by jacq

Share this post


Link to post
Share on other sites
somdcomputerguy

Using the _INetGetSource() function is one way of doing this.

#include <INet.au3>
$Source = _INetGetSource('www.website.com')
ConsoleWrite($Source & @LF)

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
jacq

Also, I found this solution but thanks for your willingness to help.

Thanks somdcomputerguy (again) :oops:

Edited by jacq

Share this post


Link to post
Share on other sites
somdcomputerguy

Maybe they're tired, or just lazy.. :oops: Ok, kidding aside. You'll have to be a bit more descriptive than 'do not work' if anybody will be able to help. Someone's crystal ball might be polished just enough to guess pretty accurately what you mean though.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
jacq
I wrote Polish characters (special liters) like Chinese letters but other.This liters ł,ó,ż,ź. Edited by jacq

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×