Announcement

Collapse
No announcement yet.

Help with hs.runscript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with hs.runscript

    I have this chunk of code in an ASP page

    If Request.Form("sValM34") = "Fade" Then
    hs.writelog "Fade", "Fade"
    x=hs.Runscript("FadeToDarkMaster.txt",0,0)
    hs.waitsecs (.3)
    end if

    and on a pressing a "Button" it runs and the script runs.

    But I am puzzled by a couple of things

    Why or what does the form x= do? opposed to writing it like this hs.runscript "FadeToDarkMaster.txt",0,0

    Also and more importantly it seems that no matter what I set the WAIT attribute for runscript to 0 or False the ASP page waits till the script completes. Now I don't really know what I'm doing and I notice that True and False are VBS reserved keywords but I'm not sure I use them correctly. Can you just write False or True without setting their value? I also notice that False should test as 0 and True -1 so can you just use those values when a command is looking for Boolean? Well, in either case, it doesn't make any difference and my ASP page will wait till the script completes before finishing its page refresh after pressing the "button" that invokes the script.


    thanks Rick
    Attached Files
    Last edited by rmorton27; May 22, 2017, 05:32 PM.
    -Rick
Working...
X