Jump to content

Recommended Posts

Posted (edited)

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
Posted

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.

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
×
×
  • Create New...