Announcement

Collapse
No announcement yet.

Difference Box and Timer

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

  • Difference Box and Timer

    Hi, I´ve been reading about Box plugin (http://www.amspublic.org/action_plugins.php?plugin=Box)
    It seems great because as far as I am concerned AMS does not allow to run several tasks at the same time.
    I believe Box plugin allows to do that.
    But in the help file I read that Box works in intervals (milliseconds) so it seems like starting a native Page timer in AMS.
    ¿What is the difference between Box and native Timers?

    Thanks!

    David Ramirez

  • #2
    Originally posted by daviz View Post
    because as far as I am concerned AMS does not allow to run several tasks at the same time.



    Multithread plugin

    regards

    Comment


    • #3
      It uses the GlobalTimer plugin so it can run multiple timers at once for each script and can also run them from any page or dialog.
      https://github.com/CentauriSoldier

      Comment


      • #4
        Originally posted by herrin View Post

        Multithread plugin

        regards
        One can only safely multithread when you have a Lua build that implements lua_lock and lua_unlock, AMS does not ship that by default.

        - https://forums.indigorose.com/forum/...096#post303096
        Bas Groothedde
        Imagine Programming :: Blog

        AMS8 Plugins
        IMXLH Compiler

        Comment


        • #5
          Hi, thanks all for your response.
          Seems that running several tasks at the same time is not as simple as I thought!
          I will try with Box plugin. BTW why is it called Box? what is the concept of box in programming? I guess that might help with understanding how to use it.

          David Ramirez

          Comment


          • #6
            Hi david, i looking for the example if Box plugin in here http://www.amspublic.org/action_plugins.php?plugin=Box but cant find.. can you share example of it just want to see how it works.. thanks

            Comment


            • #7
              Hi telco, actually I've found no example. The plugin comes with a help file though. That will be my guide to make my own example but it will be trial and error.

              Comment


              • #8
                I don't know why I decided on "Box" for the name of the plugin. I was thinking about a wharehouse for storing all my scripts while my program is running. I can just go find a box, "bump" it and run the script then put the box back until I needed it again.

                Maybe I'll rename and rewrite it someday.
                https://github.com/CentauriSoldier

                Comment


                • #9
                  That analogy of bumping the box helped me understand the purpose of the plugin! Thanks.

                  Comment


                  • #10
                    Glad to help.
                    https://github.com/CentauriSoldier

                    Comment


                    • #11
                      Hi Centauri
                      I did a simple example of Box plugin, can I share it here?
                      It runs a script (Box.Bump) succesfully but it doesn´t do it at the same time as another task. It is not "multitasking" right now. Perhaps I am not using it correctly.

                      Thanks in advance.

                      David Ramirez

                      Comment


                      • #12
                        Attach my example.
                        Attached Files

                        Comment


                        • #13
                          Cool, thanks for sharing!
                          https://github.com/CentauriSoldier

                          Comment

                          Working...
                          X