If the control you're looking at is, or can be reclassed to, a standard
edit control, you can use the Text property of the Control object to
read/write to/from it. For example,
someTextWindow.Control.Text = "This text is now inside the edit field."
Regards,
Steve
On 12/30/2009 11:32 AM, Ralf Kefferpuetz wrote:
Hi all,
I just want to sent some text to an edit field and don't know how.
Maybe with the .write propertie?
Here is an example:
print FocusedWindow.ClassName
TMemo
print FocusedWindow.ModuleName
INSPEAK
Set codeWindows =
ActiveWindow.Children.FilterByClassAndModule("TMemo", "INSPEAK")
print codeWindows.Count
1
For Each wObj In codeWindows : If wObj.Clips.Count > 0 Then : Set
codeWindow = wObj : Exit For : End If : Next
print TypeName(codeWindows)
Windows
'prints the text which is currently entered in the edit field
For Each clip In codeWindow.Clips : If clip.Type = ctText Then : print
clip : End If : Next
text entered in a edit field
So, I want to send text to this edit field with a crLf, i.e.
object.write "new text in the edit field"
Which object do I have to use and is the .write method the correct one?
Many thanks,
Ralf Kefferpuetz
Germany
Altkoenigstr. 9a
61389 Schmitten
Phone: +49 6082 929415
Mobile: +49 171 950 4326
MSN/Live: [email protected] <mailto:[email protected]>
Aim: RalfKatEMC
Skype/Yahoo: rkefferpuetz7747
http://blindpodcast.mypodcast.com <http://blindpodcast.mypodcast.com/>
*** Do what needs to be done, people will talk anyway ***
***
Wenn Unrecht zu Recht wird, wird Widerstand zur Pflicht!
***