|
unhappy Newbie
Joined: 05 Nov 2003 Posts: 2 Location: USA
|
Posted: Wed Nov 05, 2003 8:57 am
vbscript use help |
i would like to use vbscript as my language choice instead of the default zmud language, but cannot find documentation for the life of me.
i would like to access to and manipulate global, class, and trigger/regex variables. |
|
|
|
hatespyware Apprentice
Joined: 16 Dec 2002 Posts: 103
|
Posted: Wed Nov 05, 2003 4:14 pm |
Try looking under the #mss and #script help headings for examples of creating subs and passing vars to and from them.
|
|
|
|
unhappy Newbie
Joined: 05 Nov 2003 Posts: 2 Location: USA
|
Posted: Thu Nov 06, 2003 6:51 am |
ty for the help... it seems like a lot of the documentation was in a forum i don't have access to... i'll sign up for the developer forum. but i did find what i needed to find (mostly from: http://www.zuggsoft.com/zmud/comserve.htm).
below is what i've found... hopefully it helps someone else.
'2 ways from zmud to script
var = sess.ExpandStr("%1")
var = sess.GetVar("varname", "classpath").Value
'assign var's value to a zmud variable
sess.ProcessCommand("#VAR vbs_temp " & var)
sess.GetVar("varname", "classpath").Value = var |
|
|
|
hatespyware Apprentice
Joined: 16 Dec 2002 Posts: 103
|
Posted: Thu Nov 06, 2003 12:47 pm |
#VAR X 2
#MSS {x=@X}
#SHOW %mss(x)
works, too |
|
|
|
|
|