Zabaware Support Forums

need help with this plugin

Started by peace, May 20, 2016, 11:55:38 PM

Previous topic - Next topic

peace

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

lightspeed

although not a answer but i am curious , why just a one second delay?
 

peace

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) 

peace

#3
ok all finished.... i left the new file in hal com in the file sharing area
its called serial function plugin.zip

Art

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.
In the world of AI it's the thought that counts!

- Art -

lightspeed

what exactly again is this plug in suppose to do?
 

peace

#6
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.