Jump to content
Sign in to follow this  
rado354

Can someone help me to write this function?

Recommended Posts

rado354

Hello everybody,

In WordPad I have something like this:

code code code
...
http://mysite.com/2007/06/05/title1/
---
code code code
---
http://mysite.com/2007/06/04/title2/
...
code code code

I need a function that will create a list like:

<a href="http://mysite.com/2007/06/05/title1/">title1</a>

<a href="http://mysite.com/2007/06/04/title2/">title2</a>

Is it possible to do this with AutoIt?

I have a basic AutoIt knowledge, but this is way to advanced for me.

Can someone please help me?

Thank You in advance :)

Edited by rado354

Share this post


Link to post
Share on other sites
florisch

I suppose you read the help file, under Function Reference you will find String Management.

This text is saved as a file?

I would open it with FileOpen(), get it line by line with FileReadLine() and then parse the lines for what I need with string functions. Like: line starts with http://, then I extract the rightmost part.

Then you can concatenate together the line you wanted.

Share this post


Link to post
Share on other sites
rado354

The text is saved as a file.

Thanks a lot for your input, I will try and report the results :)

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  

×