for standart controls i can use
Code:
gettext("Button1")
Sub gettext(name)
obj.New1(False)
obj.FromControl(name)
r=obj.GetProperty("Text")
Msgbox(r,"!")
End Sub
'obj' is door object.but how can i use it for controls from other dlls?
The library needs to return a reference to the control, usually by either ControlRef or Value. Then you use
obj.Value = LibraryControl.ControlRef
or
obj.Value = LibraryControl.Value
If the library does not expose a reference then you could use obj.FromLibrary(....) but you would need to know the internal name of the control in the library which you could possibly get using .NET Reflector.
I think you are looking for something like this (see attachment; needs the door.dll).
This solution works for every "standard" control supporting the text property.
I think you are looking for something like this (see attachment; needs the door.dll).
This solution works for every "standard" control supporting the text property.