Link to home
Start Free TrialLog in
Avatar of fhmsolutions
fhmsolutionsFlag for France

asked on

Radio buttons in VBScript

I know this is an often asked question, but I can't seem to find an answer that fits my simple needs.
I'm wrtiing a VBscript which requires to get user input from a list of choices. It seems the proper way is to use an external HTA file.
But I don't know how this should look like.

So if anyone could give me a basic example of a VBScript obtaining user answers from an HTA file, it would help a lot.

Thanks
Avatar of TakedaT
TakedaT
Flag of United States of America image

Check out this link.  It is as basic as it can get and should help you out.

http://technet.microsoft.com/en-us/library/ee692602.aspx
Avatar of fhmsolutions

ASKER

Thanks, but this shows an HTA that includes VBscript. I need the opposite.
In sequence : The VBS launches the HTA
The HTA shows the buttons, then gets the answer from the user
The VBS gets the information back and goes on
Thats an interesting idea, but Im not sure how to approach it.  I dont think it is possible with an .hta, but it may be possible using the InternetExplorer.Application object.  I will play and see what I can do.
Thanks. I know it's been done before.
I found some information about it here : http://stackoverflow.com/questions/923503/how-to-create-options-dialog-with-vbscript
But I'm not good enough with both VBScript and HTA to adapt this to my needs.

ASKER CERTIFIED SOLUTION
Avatar of TakedaT
TakedaT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks a lot. That was exactly what I needed. I adapted it to my needs and it works perfectly.