Jump to content

Can someone help me to write this function?


Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...