But also @members who want to help Pedrole15 and me
Medevil asked me whether it is possible to get the value of a component of a different script.
I was thinking about adding to WinBuilder's commands, but then I thougt that this is too special for WB. It should be solved on script level.
That leads to API level.
The following code should be possible with WB 077 RC3:
Call:
GetInterface,%VarResult%,myscript,yourcomponent,type
Definition:
[Variables]
GetInterface=Run,%API%,Get_Interface,OUT:
Implementation:
[Get_Interface]
IniRead,#2,Interface,#3,%component%
If,#4,EQUAL,CheckBox,Set,%num%,8
If,#4,EQUAL,???,Set,%num%,???
If, ...
StrFormat,SPLIT,%component%,#$c,%num%,#1
(Untested, just a brainstorming suggestion) ...
To get the type, cannot be done automatically, because some scripts replace the standard names by their own mnemotechnic names.
Peter









