Jump to content

To select & copy a line from notepad


cutedog09
 Share

Recommended Posts

Cheers to AutoIT and all forum members!!

I'm a newbie so pls help me...

I want to select & copy-paste one line at a time from notepad.So my problem is:

1)How do i select(highlight) only some specific txt from a document? ( I beleive here i'll hav to specify some criteria(character) to start selection and another criteria(char) to end selection.How do i do this? )

2)How do i maintain a 'line count' or some method to determine my current position in the text document?

I'm new to scripting(2days B) ) but familiar with programming(C/C++)

Any help on this wud b appreciated..thanx in advance :o

Link to comment
Share on other sites

Welcome to the forums!

It would be much easier to have AutoIt copy and paste one line at a time from a text file without it being open in Notepad -- would this also be alright? What exactly do you want to achieve?

Using this approach it would not be necessary to maintain a line count either since AutoIt would do this internally.

P.S. You may find that your thread is moved to the Support forum soon. Please post any future questions there. B)

Link to comment
Share on other sites

oh i'm sorry..my mistake.

Thanx to LxP.Dats exactly wat i want to acheive...u've got it correct.It doesn't matter if the notepad is open or not.

How to do it?

Pls reply here->http://www.autoitscript.com/forum/index.php?showtopic=18526

(i hope this time i posted at the right place)

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...