Jump to content
Sign in to follow this  

Need advice on selected text

Recommended Posts


I would like to build the following script to ease my work: while on a webpage, I want to be able to select a fix amount of text (500 chars) from that webpage. I would click on the position in text where I want my selection to start and the selection would autoitmagicaly extend up to 500 chars from that point.

I've read the manual but I still haven't found a way to manipulate the length of the selection.

At the moment I use a "workaround", selecting the text into the clipboard and counting the length of the string with (snip)

$bak = ClipGet()
$len = StringLen(String($bak))

and using a tooltip to give me some hints on the screen.

Anybody can help me get closer to my original need? Thank you very much.

Share this post

Link to post
Share on other sites

For such reding text pieces from webpage would be better to use IE UDF.

Look into AutoIt helpfile at User Defined Function Reference --> IE Management

Probably: _IEBodyReadText()

Thank you for the answer but this doesn't fit my need :)

Share this post

Link to post
Share on other sites

what you ask sound insane.

that why Zedna give sanity.

why you need text of mouse selection, crazy? ~Jap

Thanks for the constructive comment. Cheers mate!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...