fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Update variables when modifying parameters

    Questions & Answers
    2
    5
    438
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      digimax last edited by digimax

      Good,

      is there an option that detects the modification of parameters.
      Currently I modify some constant from the parameters menu and the bot is not updated
      Thank you very much
      ####################

      Buenas,

      hay alguna opción que detecte la modificación de parámetros.
      Actualmente modifico alguna constante desde el menú parámetros y no se me actualiza el bot.

      Gracias

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @digimax last edited by

        @digimax
        Constants and variables are different things, dou you want the variables to be updated when some constants are changed ?
        Would be better to see the project

        1 Reply Last reply Reply Quote 0
        • D
          digimax last edited by

          I only read the parameters on init, when I load the bot.
          But if I go to parameters and accept the changes, the bot does not go through the On Init event.
          With the On init event I pass that parameter (constants) to Variable.

          What I want is to detect when the user presses the OK button in the parameter box

          S 1 Reply Last reply Reply Quote 0
          • S
            seb 0 @digimax last edited by

            @digimax
            Can you paste the link of your project, or an example of it plz ?

            1 Reply Last reply Reply Quote 0
            • D
              digimax last edited by

              I have already solved it, I save the constant in a variable in the On Init event and then I compare it every 0.5 sec. If I modify it in the Properties box, I already detect it. Thanks

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              N
              E
              S
              L
              N
              Q
              A
              F
              S
              T

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors