VBS combo box in batch

Hewlett-packard / Sd2100
May 27, 2009 at 19:56:54
Specs: Windows XP, 1024
ok Reno has help me figure out/show me that i can use VBS input and VBS yes no box.

does VBS have combo boxes? i googled it but didnt get much.

is it possible to add a combobox in batch?

Thank you

See More: VBS combo box in batch

Report •

May 28, 2009 at 01:37:03
i check the vbscript documentation, it seems there is no combo box.

here is the dirty way using ie combobox, i am struggling the html code, since i've little knowledge on html:

set ie=createobject("internetexplorer.application")
ie.navigate2 "about:blank"

ie.document.body.innerHtml= _
	"<select size='1' name='Listbox1'>" & _
	"<option value='1'>Option 1</option>" & _
	"<option value='2'>Option 2</option>" & _
	"<option value='3'>Option 3</option>" & _
	"<option value='4'>Option 4</option>" & _
	"</select>" & _
	"<input type=hidden id=selected value=0>" & _
	"<input type=submit onclick='vbscript:selected.value=listbox1.value'>"

do while ie.document.getelementbyid("selected").value=0:wsh.sleep 200:loop
ie.quit:set ie=nothing

wsh.echo "you selected " & selected

Report •
Related Solutions

Ask Question