Author Topic: need help with this plugin  (Read 4091 times)

peace

  • Newbie
  • *
  • Posts: 42
    • View Profile
need help with this plugin
« 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

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: need help with this plugin
« Reply #1 on: May 21, 2016, 07:58:06 am »
although not a answer but i am curious , why just a one second delay?
 

peace

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: need help with this plugin
« Reply #2 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) 

peace

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: need help with this plugin
« Reply #3 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
« Last Edit: May 22, 2016, 12:55:34 am by peace »

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: need help with this plugin
« Reply #4 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.
In the world of AI it's the thought that counts!

- Art -

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: need help with this plugin
« Reply #5 on: May 22, 2016, 08:36:05 am »
what exactly again is this plug in suppose to do?
 

peace

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: need help with this plugin
« Reply #6 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.
« Last Edit: May 29, 2016, 01:01:34 am by peace »