Hi eshan.mathur, I'd say it's not possible, but I'm not a big Configurator 4 expert. If you need a simple GUI on CS6, I'd suggest using a Scripted Dialog. It's not that hard if you don't need fancy stuff, see this snippet:
var yourFunction = function(first, second, third) {
// Do whatever you need here
alert("Params\nFirst: " + first + "\nSecond: " + second + "\nThird: " + third);
}
var res = "dialog { \
margins: 15, spacing: 20, \
preferredSize: [200,100], \
orientation: 'column', \
text: 'Demo Scripted Dialog', \
alignChildren: ['right', 'top'], \
\
firstParam: Group { \
sText: StaticText { text: 'First Parameter:' }, \
eText: EditText { \
characters: 4, \
text: '10' \
} \
}, \
secondParam: Group { \
sText: StaticText { text: 'Second Parameter:' }, \
eText: EditText { \
characters: 4, \
text: '20' \
} \
}, \
thirdParam: Group { \
sText: StaticText { text: 'Third Parameter:' }, \
eText: EditText { \
characters: 4, \
text: '30' \
} \
}, \
buttonsGroup: Group { \
cancelButton: Button {text: 'Cancel'}, \
okButton: Button { text: 'OK' } \
} \
}"
var w = new Window(res);
var retVal = w.show();
if (retVal == 1) { // User clicked OK
var firstParam = w.firstParam.eText.text,
secondParam = w.secondParam.eText.text,
thirdParam = w.thirdParam.eText.text;
yourFunction(firstParam, secondParam, thirdParam);
}
Hope this helps, Davide Barranca --- www.davidebarranca.com www.cs-extensions.com
... View more