noviceuser Posted December 30, 2007 Share Posted December 30, 2007 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? Link to comment Share on other sites More sharing options...
martin Posted December 30, 2007 Share Posted December 30, 2007 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 theWindowInfo 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. Link to comment Share on other sites More sharing options...
noviceuser Posted December 30, 2007 Author Share Posted December 30, 2007 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? Link to comment Share on other sites More sharing options...
martin Posted December 30, 2007 Share Posted December 30, 2007 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. Link to comment Share on other sites More sharing options...
pixartist Posted December 30, 2007 Share Posted December 30, 2007 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 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 3, 2008 Moderators Share Posted January 3, 2008 Get a reference to the object containing the text then use... $sTest = _IEPropertyGet($o_object, "innertext") 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