| Author |
Message |
Topic: Could Loop, Filepattern use regular expressions? |
John B.
Replies: 11
Views: 1607
|
Forum: Wish List Posted: Wed Dec 12, 2007 12:39 am Subject: Could Loop, Filepattern use regular expressions? |
Hi,
I posted a question over in Ask for Help, but it's led me to make a suggestion as well. The problem I encountered is that the Filepattern in a file loop can match a string anywhere in the file ... |
Topic: Limiting files matched in a file loop |
John B.
Replies: 4
Views: 444
|
Forum: Ask for Help Posted: Wed Dec 12, 2007 12:32 am Subject: Limiting files matched in a file loop |
Hi Mustang,
Interesting validation. I'll bet I could use RegExMatch to be more exclusive, since I'd want to exclude all file extensions that don't exactly match .hhc.
This appears to work:
Loop, ... |
Topic: Limiting files matched in a file loop |
John B.
Replies: 4
Views: 444
|
Forum: Ask for Help Posted: Tue Dec 11, 2007 6:54 pm Subject: Limiting files matched in a file loop |
Hi,
I mis-stated one thing about the file names. Try this:
Create two files in a directory:
a.hhc
a.hhc_backup
In the same directory, create this AHK script:
Loop, *.hhc, , 0
{
... |
Topic: Limiting files matched in a file loop |
John B.
Replies: 4
Views: 444
|
Forum: Ask for Help Posted: Tue Dec 11, 2007 4:19 pm Subject: Limiting files matched in a file loop |
Hi,
I'm performing some operations on a file in a directory. I know the file extension of the file (*.hhc), but not the full file name. The only way I could think of to get the file name is to use ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Tue Nov 27, 2007 12:27 am Subject: Append next line in a parsing loop |
Hi engunneer,
You wrote:
a stringsplit and a loop of the stringsplit results is the same as a loop, parse.
The difference, I'm hoping, is that a stringsplit results in an "array", whi ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Mon Nov 26, 2007 8:50 pm Subject: Append next line in a parsing loop |
Hi [VxE],
Yes, I thought about using an array for just that reason, although I was going to use a loop to build the array. If I go with the array, your suggestion of using StringSplit to create the ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Mon Nov 26, 2007 4:16 pm Subject: Append next line in a parsing loop |
So it would look like this?
bjoin = false
Loop, parse, CurrentFile, `n
{
If bjoin = false
{
step 1
step 2
...
step n ; test for need to join
If ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Mon Nov 26, 2007 3:40 pm Subject: Append next line in a parsing loop |
x0xx0m wrote:
no, there isn't. What's wrong with continue?
The test for needing to append the next line comes in the middle of the processing (as shown in the original post).
1. After appending ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Mon Nov 26, 2007 3:21 pm Subject: Append next line in a parsing loop |
Hi wOxxOm,
That's what I originally considered, but it has to be done without using "Continue".
Is there any way to access and increment the index/pointer in a parsing loop? If not, th ... |
Topic: Append next line in a parsing loop |
John B.
Replies: 11
Views: 477
|
Forum: Ask for Help Posted: Mon Nov 26, 2007 2:22 pm Subject: Append next line in a parsing loop |
Hi,
I've read a file into a variable (CurrentFile), and am using a parsing loop to process each line of the file. As part of the processing, I want to append the next line from CurrentFile to the c ... |
Topic: Finding text string in a file without FileRead |
John B.
Replies: 2
Views: 788
|
Forum: Ask for Help Posted: Fri Nov 16, 2007 5:53 pm Subject: Finding text string in a file without FileRead |
OK, I can live with that
Thanks,
John B. |
Topic: Finding text string in a file without FileRead |
John B.
Replies: 2
Views: 788
|
Forum: Ask for Help Posted: Fri Nov 16, 2007 5:50 pm Subject: Finding text string in a file without FileRead |
Hi,
This has probably been answered before, but running a search on "Find text in file" returns 35 pages of results. So...
Is there a straightforward way in AHK to search a file for a ... |
Topic: Help file as a document? |
John B.
Replies: 8
Views: 659
|
Forum: Ask for Help Posted: Wed Oct 31, 2007 8:05 pm Subject: Help file as a document? |
It's a little out of date, but see:
AHK version 1.0.45.01 help file:
http://www.autohotkey.net/~JohnB/autohotkey.pdf
http://www.autohotkey.com/forum/viewtopic.php?t=13809
Thanks,
John B. |
Topic: Establishing a standard/recommended editor for AutoHotkey |
John B.
Replies: 24
Views: 10072
|
Forum: Wish List Posted: Mon Feb 26, 2007 2:23 pm Subject: Establishing a standard/recommended editor for AutoHotkey |
From what I can tell, none of the free editors handle regular expressions in search/replace very well.
* sigh*
Maybe this Emerald Editor will do better. Apparently multi-line search and replace ... |
Topic: Functions cannot contain functions error |
John B.
Replies: 5
Views: 428
|
Forum: Ask for Help Posted: Sun Jan 21, 2007 5:20 pm Subject: Functions cannot contain functions error |
Helps!
I see - functions seem to be global to the script, and can't be restricted in a hotkey block.
Thanks,
John B. |
| |