Sign in to follow this  
Followers 0
killroy

Search and Replace

5 posts in this topic

Greetings Ladies and Gentlemen,

I am truly hoping someone will be able to solve my insy winsy, teeny, weeny, problem.

I have a fairly big text document. I would like to open the document

and do a 'Search and Replace' like notepad. 'Find What' -> 'Replace With'.now for the catch!

I want to do it Automatically!! hence the AutoIt Forums :idiot: clever or what

I have tried dabbling a bit with FileOpen, FileWriteLine and StringReplace but I

am having no joy and I would hate to paste what code I do have because it's not

more then a few lines and does nothing but fill the document with empty lines.

If one of you highly intelligent individuals wouldnt mind sharing your knowledge and pointing me

In the right direction, I would be most grateful.

Thanking you very muchly.

Byronious

Share this post


Link to post
Share on other sites



Accually it is:

Itsy, Bitsy, Teeny, Weeny (like the song Yellow Polka Dot Bikini) Problem.

but I don't think you know the song at all. :idiot:

Anyway, about your script.

Could you program to open the file and then the keyboard shortcut (CTRL-H) and let it fill in the things you want to replace?

I think that would be the easiest way.

Share this post


Link to post
Share on other sites

You know what! Why oh why didn't I think of that. You are a god!

Regarding the song :lol: Singing was never my strong point, then again niether is scripting :D I was thinking of Insy Winsy Spider...... omg! :idiot:

Many thanks for the reply. Any more from other helpful people would be appreciated!

Share this post


Link to post
Share on other sites

Hi all, I have tried the above example and have got it to work but becuase my document is so big and because I have many Search and Replace strings I would really like for it to be done in the background.

Cheers

Byron

Share this post


Link to post
Share on other sites

Maybe @HIDE will work for you.

But can't really help you with that because I'm always struggling with that option too. Sorry. :D

I hope someone more expirienced can help you further. :idiot:

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  
Followers 0