[VBS] Underline in object name (5)

1 Name: #!/usr/bin/anonymous : 2008-11-27 14:24 ID:dWu3DHdf

i'm trying to use an underline in an object name in vbscript like oIE.document._form.field.value but it isn't working, says illegal character or something

how am i supposed to use this form if the name has an underline in it? i tried getElementById because i'm no real vbs coder and it looked so much like javascript but it didn't work

2 Name: #!/usr/bin/anonymous : 2008-11-28 11:34 ID:Heaven

>>1
use JScript instead.
it doesn't have any problems with oIE.document._form.field.value.
and that way even if your form happened to be called something like +"',-, you could just do oIE.document['+"\',-'].field.value.

3 Name: #!/usr/bin/anonymous : 2008-11-28 14:07 ID:dWu3DHdf

i'm using this vbscript to have a clickable file on my desktop i can use to start my commonly used apps when i get to work

so far we've all been using a batch script but we recently added some citrix apps so it makes things easier to have them logged in too

i work in a very restricted environment so batch and wsh are all we can use

4 Name: #!/usr/bin/anonymous : 2008-11-28 14:08 ID:dWu3DHdf

oh and btw i solved this by having sendkeys tab down to the submit button instead of submitting it through it's object which had a _name

5 Name: #!/usr/bin/anonymous : 2008-11-29 08:36 ID:Heaven

> i work in a very restricted environment so batch and wsh are all we can use

JScript is in WSH, you idiot.

>>4
yeah, that works, until a single link or form element is added which breaks your whole script.

This thread has been closed. You cannot post in this thread any longer.