AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy all between......

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ai4fu



Joined: 09 Dec 2007
Posts: 10

PostPosted: Wed Apr 30, 2008 1:21 am    Post subject: Copy all between...... Reply with quote

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
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1494

PostPosted: Wed Apr 30, 2008 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Trikster



Joined: 15 Jul 2007
Posts: 1224
Location: Enterprise, Alabama

PostPosted: Wed Apr 30, 2008 1:42 am    Post subject: Reply with quote

xpath v3 - read and write XML documents with XPath syntax [Titan]
_________________
ScriptPad | ~dieom | dieom | izwian2k7 | Ian | God
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group