GetUIElement(Index)

Returns the current value of the UI element.

Parameters:

Index The index of the UI element that should be returned

Remarks:

The return-value of this function will depend which type the plug-in has.

If X-Setup displays a text-control (AKA Edit), the return value will be a string. If X-Setup displays a control that can only have two states (like checkboxes) the return value will either be TRUE or FALSE. The first element has the index of one.

Example:

b=GetUIElement(2)
If b=true then 'if control 2 is checked
 Call RegWriteValue("HKLM\Software\TestVal","Check",1) 'write check to registry
else
 Call RegWriteValue("HKLM\Software\TestVal","No Check",1) 'write no check to registry
end if