Sign in to follow this  
Followers 0
eonflux

Need advice on selected text

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Edited by Zedna

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

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  
Followers 0