AutoHotkey Community

It is currently May 24th, 2012, 8:59 am

All times are UTC [ DST ]


Search found 25 matches
Search these results:

Author Message

 Forum: Support   Topic: create a delimited list from a txt file?

Posted: January 30th, 2012, 10:26 pm 

Replies: 2
Views: 109


That worked perfectly, thanks so much!

 Forum: Support   Topic: create a delimited list from a txt file?

Posted: January 30th, 2012, 9:38 pm 

Replies: 2
Views: 109


Hi all... here for some help... I have a text file that has a LOT of stuff in it, but what I want to do is take all the invoice numbers contained in the file, and make a txt file of them in a delimited list fashion (i.e., 623432, 625342, 624353). The portions of the txt file that list the invoice nu...

 Forum: Support   Topic: Parsing, keeping only the first word of certain lines?

Posted: July 13th, 2010, 7:42 pm 

Replies: 2
Views: 91


Perfect. I coupled your work with FileAppend and got exactly what I needed. Plus I learned a few things, too!

Thanks so much.

 Forum: Support   Topic: Parsing, keeping only the first word of certain lines?

Posted: July 13th, 2010, 7:06 pm 

Replies: 2
Views: 91


I am trying to figure out how to have a script read a rather large txt file line by line and only keep the first word of a line if that word starts with F, K or W, and delete all other lines. I think readfile and loop and parse might work but I can't seem to figure it out. A sample of what I'm worki...

 Forum: Support   Topic: keeping only parts of a document...?

Posted: February 2nd, 2010, 6:01 pm 

Replies: 10
Views: 348


That code works fine as is on my end, are you using the latest version of AutoHotkey? I am now, I was using an older version. And now it works. The only problem I have now is that when I put in the actual text for the 'var', its wayyy too long for AHK to process (error: Continuation section too lon...

 Forum: Support   Topic: keeping only parts of a document...?

Posted: February 2nd, 2010, 5:27 pm 

Replies: 10
Views: 348


If the key string is always going to be located on a line after "Total Invoices for" a while loop will work as well: Good idea! You are correct. I tried to use that code, though, and got an error saying invalid variable name, so I took the "." out of the res variable name and re...

 Forum: Support   Topic: keeping only parts of a document...?

Posted: February 2nd, 2010, 4:25 pm 

Replies: 10
Views: 348


Is it a fixed format, e.g you always need the 7th 20th etc line of each file? Of any line that is composed of a single word? Tell us the format/pattern and we can point you in the right direction which may be a simple parsing loop or some regexp magic. The only constant is this: the lines I want to...

 Forum: Support   Topic: keeping only parts of a document...?

Posted: February 2nd, 2010, 3:49 pm 

Replies: 10
Views: 348


I need to figure out how to turn a document that looks like this: Audio J Information Date Sent: 01/22/10 Date Printed: 01/21/10 INVOICE CUSTOMER NAME # OF START # OF # SPOTS DATE COPIES KABC 855645 BIKE SHOP 1 02/12/10 1 856434 ELECTRIC WORK TESTING 3 02/08/10 1 Total Invoices for KABC 2 Total Spot...

 Forum: Support   Topic: FileRead / file-reading loop pros?

Posted: October 21st, 2009, 11:15 pm 

Replies: 4
Views: 252


Authotkey L is a gem as is that COM.

Your explanation works, but it's in reverse of what I'm trying to do. It kept the lines that start with a word, I just wanted to keep the lines that start with a number.

Also, can I just use Autohotkey_L all the time to permanently replace normal authotkey?

 Forum: Support   Topic: FileRead / file-reading loop pros?

Posted: October 21st, 2009, 9:55 pm 

Replies: 4
Views: 252


How do you use FileRead or a file-reading loop to delete every line in a microsoft word document that does not begin with a digit 0-9?

I can't wrap my head around this. Can someone provide an example?

 Forum: Support   Topic: Delete numbers in a text file if they're in another text fil

Posted: October 21st, 2009, 9:17 pm 

Replies: 2
Views: 177


Hmm thanks. I think I understand!

 Forum: Support   Topic: Delete numbers in a text file if they're in another text fil

Posted: October 21st, 2009, 8:59 pm 

Replies: 2
Views: 177


I have two text files. Text file A contains many invoice numbers. Text file B contains only a few invoice numbers, but possible duplicates from Text file A. Is it possible to "read" text file A and if any of the numbers are in text file B, delete them from text file B? Aka delete the dupli...

 Forum: Support   Topic: removing lines based on contents.. tricky..

Posted: October 20th, 2009, 11:52 pm 

Replies: 4
Views: 181


Thanks a ton. With the help I ended up with this. And it rocks. Thanks so much. Inputbox, workingfile, Name of file, What is the name of the plain text file? FileRead, data, %workingfile%.txt newData := "" Loop, Parse, data, `n, `r newData .= StrLen(A_LoopField)=4 ? ((prev=...

 Forum: Support   Topic: removing lines based on contents.. tricky..

Posted: October 20th, 2009, 9:14 pm 

Replies: 4
Views: 181


I'm trying to create a script that removes/deletes lines based on content, and moves numbers close to each other... before and after examples ... before: Audio Station Scripts Information Date Sent: 10/09/09 Date Printed: 10/08/09 INVOICE CUSTOMER NAME # OF START # OF # SPOTS DATE COPIES KABC 585916...

 Forum: Support   Topic: GUI font color change?

Posted: October 20th, 2009, 12:49 am 

Replies: 5
Views: 376


thanks for the explanation, i learn as i go along. i understand so thanks for increasing my knowledge, and for helping out period.
Sort by:  
Page 1 of 2 [ Search found 25 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group