Zabaware Support Forums

Zabaware Forums => General Discussion => Topic started by: peace on May 20, 2016, 11:55:38 pm

Title: need help with this plugin
Post by: peace on May 20, 2016, 11:55:38 pm
i was hopeing someone knows the answer to this, i would like to delay hals script for about 1 second
i tried to use wscript.sleep 1000 but im getting all kinds of errors does anyone know how to put a sleep or a sleep like command in a script?
code

If comForm2 = True Then
        Set comxx = CreateObject("WScript.Shell")
        comxx.Run ("""anyfile.vbs""")
       

WScript.Sleep(1000)
End If


i get an error of "object required:"wscript""

i tried to make an object and just got related errors.....
am lost
Title: Re: need help with this plugin
Post by: lightspeed on May 21, 2016, 07:58:06 am
although not a answer but i am curious , why just a one second delay?
Title: Re: need help with this plugin
Post by: peace on May 21, 2016, 04:39:23 pm
im trying to read from a text file that i am creating useing the same plugin. the code moves so fast that the text file is being read before it is updated, i think a one second delay will allow the file to update .... i might be able to just run a random batchfile or two to get the desired delay but i would rather have a command similar to sleep........ this is the last road block for this plugin. im going to post it when im finished ..... its a mod of the origional hal com plugin but this one can send and receive data to a serial device(like an arduino) 
Title: Re: need help with this plugin
Post by: peace on May 22, 2016, 12:44:13 am
ok all finished.... i left the new file in hal com in the file sharing area
its called serial function plugin.zip
Title: Re: need help with this plugin
Post by: Art on May 22, 2016, 08:03:16 am
If you want Hal to read it then fine otherwise there's always the Free Text-To-Speech Reader located on the main Zabaware.com site.
Title: Re: need help with this plugin
Post by: lightspeed on May 22, 2016, 08:36:05 am
what exactly again is this plug in suppose to do?
Title: Re: need help with this plugin
Post by: peace on May 23, 2016, 11:59:28 pm
its similar to hal com as it communicates with an arduino but this plugin can send and receive data, its working now and can be found in hal com under the file sharing forum  its titled serial function.