Jump to content
Sign in to follow this  
gamerman2360

Getting and Searching for Text

Recommended Posts

gamerman2360

I need something to look quickly for a sentence like "This sentence has * characters." in an html file read by IExplorer v6. Just something to look for the text not calculate it or anything. Then copy it to the clipboard.

Maybe "ClipPut(CurrentSelection)" but it says its not a function and i cant get it to select what I want, MouseClick or MouseClickDrag is bad because the sentence may move aound.

Share this post


Link to post
Share on other sites
buzz44

Use InetGet() to download the source to a file. Then search the file using StringInStr() and then put it in the clip board.


qq

Share this post


Link to post
Share on other sites
gamerman2360

Woooo.... A responce. Thanks, Ill try that.

Share this post


Link to post
Share on other sites
gamerman2360

Well is there a way for it to get it from the active page instead of the internet because the page I'm wanting changes.

Edited by gamerman2360

Share this post


Link to post
Share on other sites
buzz44

You could maybe use ControlGetText () on your current web browser, IE or Mozilla Firefox I'm guessing, to retrieve the text in address bar. Ofcourse you can type what ever you want in there and it will only go to the page if you hit enter or go or w/e. Which means that you might have the slight chance that the page you use InetGet() on might not be the current page you are viewing.

Edited by Burrup

qq

Share this post


Link to post
Share on other sites
gamerman2360

That wont help, the page... whats the word... it dynamically updates... something like that.

Share this post


Link to post
Share on other sites
buzz44

Your back lol. If your using IE you can use COM maybe...


qq

Share this post


Link to post
Share on other sites
gamerman2360

Sorry for being away. I don't visit fourms often.

Whats COM?

Share this post


Link to post
Share on other sites
buzz44

Type 'Obj/COM Reference' in the help file.


qq

Share this post


Link to post
Share on other sites
gamerman2360

In the search? It dosn't find anything.

Share this post


Link to post
Share on other sites
JSThePatriot

COM is in the beta features of AutoIt. You would have to download the beta version.

If the page dynamically updates then all you have to do is call the INetGet() every so often in a loop until you tell it to stop. Something like that.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×