Sign in to follow this  
Followers 0
noviceuser

Problem selecting text from website

6 posts in this topic

Hi,

I have a problem selecting text from a website. The page I wish to extract the information from contains more characters than will fit in the

WindowInfo screen. I have attempted to emulate mouse movement to highlight and select the text but run into problems when the mouse has to scroll down below the bottom of the page visible on the monitor.

Has anyone any suggestions?

Share this post


Link to post
Share on other sites



Hi,

I have a problem selecting text from a website. The page I wish to extract the information from contains more characters than will fit in the

WindowInfo screen. I have attempted to emulate mouse movement to highlight and select the text but run into problems when the mouse has to scroll down below the bottom of the page visible on the monitor.

Has anyone any suggestions?

Perhaps WinGetText will do the job.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Perhaps WinGetText will do the job.

WinGetText will get all the text in the window - is there a way to select a portion of it?

Share this post


Link to post
Share on other sites

WinGetText will get all the text in the window - is there a way to select a portion of it?

Yes, you can use the various string functions like Stringleft, StringInStr etc, there are functions in the String.au3 UDF and there is StringRegExp.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Yes, you can use the various string functions like Stringleft, StringInStr etc, there are functions in the String.au3 UDF and there is StringRegExp.

OR you just get the sourcecode and filter it out from there...should be not too hard

Share this post


Link to post
Share on other sites

Get a reference to the object containing the text then use...

$sTest = _IEPropertyGet($o_object, "innertext")

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