Jump to content

Recommended Posts

Posted

Hello,

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)

Send("^c")
Sleep(250)
$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.

Posted

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 :)

Posted

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!

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
×
×
  • Create New...