...corresponding line number in another file.
Let say we have file A like this:
1:
2:
5:
B looks like this:
hello
these
are
words
on different lines
I want my macro to bookmark the lines starting with 'hello', 'these' and 'on different lines'. Is this possible to do?
I could have the line numbers in A written to stdout from a regular text based app (c/c++) if that helps.
Thx,
/Tommy
Locating a number in a file and then bookmark the...
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
tobefound
- Posts: 1
- Joined: Thu Apr 22, 2004 12:36 pm
- MudGuard
- Posts: 1295
- Joined: Sun Mar 02, 2003 10:15 pm
- Location: Munich, Germany
- Contact:
The problem I see is how to get at the number.
How could you put it into the "Goto" dialog box in an automated way?
Once it is there, just goto that line and bookmark it (Ctrl-F2).
But I can't think of a way to put the number into that box...
I guess it is not possible with Textpad alone - but some of the MacroScheduler/AutoIt/... Wizards will probably show you some solution (involving third-party software...)
How could you put it into the "Goto" dialog box in an automated way?
Once it is there, just goto that line and bookmark it (Ctrl-F2).
But I can't think of a way to put the number into that box...
I guess it is not possible with Textpad alone - but some of the MacroScheduler/AutoIt/... Wizards will probably show you some solution (involving third-party software...)
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
MudGuard is correct. Using Macro Scheduler could handle this for you.
1. It would read file A, and store the numbers of the lines to be bookmarked.
2. It would open TextPad, and use GO TO to bookmark the lines.
3. It could then quit its own macro, leaving you in TextPad, or call TextPad macros, or continue processing as if from the keypad to finish up your work in TextPad and exit TextPad. Could then continue to use other programs with results of TextPad work.
I just posted an earlier response explaining a sample of using Macro Scheduler with TextPad. See http://www.textpad.com/forum/viewtopic.php?t=5311 for details.
1. It would read file A, and store the numbers of the lines to be bookmarked.
2. It would open TextPad, and use GO TO to bookmark the lines.
3. It could then quit its own macro, leaving you in TextPad, or call TextPad macros, or continue processing as if from the keypad to finish up your work in TextPad and exit TextPad. Could then continue to use other programs with results of TextPad work.
I just posted an earlier response explaining a sample of using Macro Scheduler with TextPad. See http://www.textpad.com/forum/viewtopic.php?t=5311 for details.
Hope this was helpful.............good luck,
Bob
Bob