This functionality is supported only if you are using the Classic Agent.
Syntax
wButton = dialogbox.GetDefaultButton( )
Variable
Description
wButton
The default pushbutton.
WINDOW.
Notes
GetDefaultButton returns the default pushbutton, the one the
Enter or
Return key activates, in the dialog box. If there is no default pushbutton, or if there are no pushbuttons in the active window,
Silk Test Classic raises the exception
E_NO_DEFAULT_PUSHBUTTON.