-
API Thing...help
I was wondering....
Say for example I had notepad open. Notepad contains a textbox of some kind, yes? How can I grab the contents of that text box via the API (IE, I dont want to have to copy/paste the code using AppActivate and SendKeys)?
Is it possible?
Any help at all would be greatly appreciated.
-
It might be easier to force NotePad to save to a dummy file, and
then read in the file.
I'm not at all sure the NotePad uses a textbox, per se.
-
wow :eek:
hey der,Ialways thot notepad had a txtbox that resized with the form!
well, Chaoticmass, in case it is, then you could also sendkey ctrl-c to it and paste in your app. :confused:
there is an api fn i think ...y notsearch google or something - if i find it first i'll post it right here...
So watch this space...!:D
-
-
I was only using Notepad as an example. I'd like to be able to spy on the content of any textbox, if that it at all possible.
Thanks for your time.
-
Like i said... check out www.vbapi.com and go to the Reference section..... It has a list of all the API calls associated with VB and tells u how to use them and what it does.
I think you will want to use the SendMessage call... you can find out the constants to use that have to do with notepad at www.microsoft.com.