arjun Posted May 4, 2008 Share Posted May 4, 2008 Please help me how do i capture or copy text under the cursor without selecting it. The text might be on a webpage or an application. I just hit tab to go to the next column which has text and those text need to be copied into clipboard. Please help me out as i am struggling to build the perfect script. Thanks in advance:) !!!AUTOIT Rocks!!!^^^^^^^^^^^^ Link to comment Share on other sites More sharing options...
nobbe Posted May 4, 2008 Share Posted May 4, 2008 hi for getting the text from a windows control you can use "ControlGetText" $classlist = WinGetClassList("title", "") $controls = StringSplit($classlist, @LF) For $y = 1 To $controls[0] $t = ControlGetText ( $Selected, "", $controls[$y] ) MsgBox(0,"",$t); Next for the webpage : it is now easier to load with the _ie functions and get the text from _IEBodyReadHTML() directly.. Link to comment Share on other sites More sharing options...
arjun Posted May 7, 2008 Author Share Posted May 7, 2008 Thanks a lot dude, i never expected the reply would be so fast.. AutoIT rocks..! But can you please tell me, how long did you take to complete this (AutoIT) course, My skills have developed when compared to last month. Also tell me how to learn to be the best. !!!AUTOIT Rocks!!!^^^^^^^^^^^^ Link to comment Share on other sites More sharing options...
covaks Posted May 7, 2008 Share Posted May 7, 2008 Arjun, you might be interested in this -> AutoIt 1-2-3 Link to comment Share on other sites More sharing options...
arjun Posted May 7, 2008 Author Share Posted May 7, 2008 This is really doing good, Let me start brushing up my knowledge (AuotiT) Thanks for all your support !!!AUTOIT Rocks!!!^^^^^^^^^^^^ Link to comment Share on other sites More sharing options...
Zedna Posted May 7, 2008 Share Posted May 7, 2008 But can you please tell me, how long did you take to complete this (AutoIT) course, My skills have developed when compared to last month.Also tell me how to learn to be the best.Don't miss to read through great AutoIt helpfile:c:\Program Files\AutoIt3\AutoIt.chm Fr33b0w 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
arjun Posted May 11, 2008 Author Share Posted May 11, 2008 I am in the situation like, i give an example :I open www.yahoo.com, inside the page we find the text "Markets:Dow: -0.9%Nasdaq: -0.2%" , there i need to copy only the percentage number i.e. "-0.9%" and "-0.2%" .Also tell me how do i click on any links in the webpage without using TAB buttonPlease help me, as sometime i feel very tough working on webpages.Thanks in Advance !!!AUTOIT Rocks!!!^^^^^^^^^^^^ Link to comment Share on other sites More sharing options...
Zedna Posted May 11, 2008 Share Posted May 11, 2008 Open AutoIt helpfile and go to UDF (User Defined Functions) sections. There is IE UDF which contains all you need to do this. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
d4rk Posted May 11, 2008 Share Posted May 11, 2008 1.look at the String* group func 2._IELinkClickByText | _IELinkClickByIndex are exactly what you need [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys 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