| View previous topic :: View next topic |
| Author |
Message |
ai4fu
Joined: 09 Dec 2007 Posts: 10
|
Posted: Wed Apr 30, 2008 1:21 am Post subject: Copy all between...... |
|
|
I am still just tinkering with AHK and sometimes the number of posts returned for a search are a bit overwhelming to someone who does not understand what many of you pros probably take for granted.
I am simply looking for a way to read a file into the clipboard, select only the text between 2 strings and to put up a MsgBox with what was between the 2 strings.
Essentially, it should take all between "<body>" and "</body>" in a text file and put up A MsgBox with whatever text may have been between those 2 html tags....
Any help would be greatly appreciated. Thanks in advance.
Jim |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 1494
|
Posted: Wed Apr 30, 2008 1:42 am Post subject: |
|
|
StringGetPos
StringMid
UrlDownloadToFile
or to get the source of a website (when browsing with firefox)... | Code: | Send ^u
WinWait, Source of
sleep 80
Send ^a^c
WinClose, Source of
msgbox % clipboard |
_________________ My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags ! |
|
| Back to top |
|
 |
Trikster
Joined: 15 Jul 2007 Posts: 1224 Location: Enterprise, Alabama
|
|
| Back to top |
|
 |
|