eonflux Posted September 18, 2007 Share Posted September 18, 2007 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. Link to comment Share on other sites More sharing options...
Zedna Posted September 18, 2007 Share Posted September 18, 2007 (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 September 18, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
eonflux Posted September 18, 2007 Author Share Posted September 18, 2007 For such reding text pieces from webpage would be better to use IE UDF.Look into AutoIt helpfile at User Defined Function Reference --> IE ManagementProbably: _IEBodyReadText()Thank you for the answer but this doesn't fit my need Link to comment Share on other sites More sharing options...
JBeef Posted September 18, 2007 Share Posted September 18, 2007 what you ask sound insane. that why Zedna give sanity. why you need text of mouse selection, crazy? ~Jap Link to comment Share on other sites More sharing options...
eonflux Posted September 18, 2007 Author Share Posted September 18, 2007 what you ask sound insane.that why Zedna give sanity.why you need text of mouse selection, crazy? ~JapThanks for the constructive comment. Cheers mate! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now