Announcement

Collapse
No announcement yet.

Send a variable from autoit to rr

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

  • Send a variable from autoit to rr

    I try to create a little autoit program who sen to RR a variable :

    Code:
    $rr.execute("SETVAR;Myvar;1800")
    With skin tool a see well that Myvar = 1800.

    In a skin , i want to see in a label code the varial resul , 1800.

    How can i write my ligne in my skin file please !

    Thanks for any help !

  • #3
    Thanks Enforcer,

    And if i want that my label code is :
    Code:
    L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","TEST",
    What must to be my command in autoit do define my variable ?

    Code:
    $rr.execute("SETVAR;????????;1800")

    Thanks

    Comment


    • #5
      Originally posted by Enforcer View Post
      Code:
      $rr.execute("SETVAR;Myvar;1800")





      Code:
      L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","=$myvar$",
      Yes Enforcer, I have tried your example and that's ok .

      But I should like to have in my skin that :
      Code:
      L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","myvar",
      What must to be my script command please ?

      Comment


      • #6
        That is the correct way: L,.......,"Lucida Sans Unicode:B","=$myvar$",

        The only other way is to do: L,.......,"Lucida Sans Unicode:B","CUSTOMxxxxxx",
        You just put 'CUSTOM' in front of whatever you want to call your label.

        Then your scrip just uses the cmd: $rr.execute("SETLABEL;CUSTOMxxxxxx;Wazaaap!")
        RideRunner...The #1 FE, PERIOD.

        Current Project: DFXVoice [v1.0 Released]
        Next in line: RRMedia v2.0

        DFX 5.1.1 Skin
        Appstore Link

        My RideRunner Plugins
        RRMedia
        RRExtended
        DFXVoice

        "There are no bugs - only undocumented features."

        Comment


        • #7
          You can also do these variations:

          Code:
          L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","$myvar$",
          with command:
          $rr.execute("SETVAR;Myvar;=1800")
          OR

          Code:
          L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","!MyVar",
          with command:
          $rr.execute("SETLABEL;!Myvar;1800")
          
          (! is the same as "CUSTOM" -- but it may not work on all languages).
          You can NOT do this:
          Code:
          L,593,313,137,21,255,255,255,12,"Lucida Sans Unicode:B","myvar",
          Because that is saying that the label should display a LABEL CODE called "myvar" which can only be an internal label code or a label code defined in an extension plugin.
          Ride Runner RR's Myspace

          "Being happy is not about having what you want, it's about wanting what you have."
          "The best things in life are always free - but that doesn't mean money can't buy you good things."

          Comment


          • #8
            Thanks Blue , thanks Guino.

            It's excately that i wanted to know !

            Comment


            • #9
              Hi Guino,

              I try to create a new program who send two variables to RR;
              I have tried that:
              Code:
              $rr.execute("SETVAR;CUSTOM_GMAILMESSAGE;YOU HAVE SEVERAL MAIL !!!")
              $rr.execute("SETVAR;CUSTOM_GMAILNUMBER;"&$a)
              with this line on my skin file:
              Code:
              L,19,48,411,169,255,255,255,30,"Arail:B","CUSTOM_GMAILNUMBER","CENTER"
              L,11,8,427,25,0,0,0,20,"Arial:B","CUSTOM_GMAILMESSAGE","CENTER"
              and also

              Code:
              $rr.execute("SETVAR;!GMAILMESSAGE;YOU HAVE SEVERAL MAIL !!!")
              $rr.execute("SETVAR;!GMAILNUMBER;"&$a)
              with this line on my skin file:
              Code:
              L,19,48,411,169,255,255,255,30,"Arail:B","!GMAILNUMBER","CENTER"
              L,11,8,427,25,0,0,0,20,"Arial:B","!GMAILMESSAGE","CENTER"
              Skintool see well my two variables but when i load my screen, nothing appear .

              I have tried these lines to finish:
              Code:
              $rr.execute("SETVAR;GMAILMESSAGE;=YOU HAVE SEVERAL MAIL !!!")
              $rr.execute("SETVAR;GMAILNUMBER;"=&$a)
              with this line on my skin file:
              Code:
              L,19,48,411,169,255,255,255,30,"Arail:B","$GMAILNUMBER$","CENTER"
              L,11,8,427,25,0,0,0,20,"Arial:B","$GMAILMESSAGE$","CENTER"
              And it is ok for me .
              So the two first option don't run for me !

              Comment


              • #10
                In autoit
                Code:
                $rr.execute("SETVAR;CUSTOM_GMAILMESSAGE;YOU HAVE NEW MAIL!")
                $rr.execute("SETVAR;GMAILNUMBER;" &$a)
                In your skin

                Code:
                L,19,48,411,169,255,255,255,30,"Arail:B","=$CUSTOM_GMAILMESSAGE$","CENTER"
                L,11,8,427,25,0,0,0,20,"Arial:B","=$GMAILNUMBER$","CENTER
                "

                Comment


                • #11
                  You can use MGD's solution OR one of these two:

                  Code:
                  $rr.execute("SETLABEL;CUSTOM_GMAILMESSAGE;YOU HAVE SEVERAL MAIL !!!")
                  $rr.execute("SETLABEL;CUSTOM_GMAILNUMBER;"&$a)
                  with these lines on the skin file:
                  Code:
                  L,19,48,411,169,255,255,255,30,"Arail:B","CUSTOM_GMAILNUMBER","CENTER"
                  L,11,8,427,25,0,0,0,20,"Arial:B","CUSTOM_GMAILMESSAGE","CENTER"
                  and also

                  Code:
                  $rr.execute("SETLABEL;!GMAILMESSAGE;YOU HAVE SEVERAL MAIL !!!")
                  $rr.execute("SETLABEL;!GMAILNUMBER;"&$a)
                  with these lines on the skin file:
                  Code:
                  L,19,48,411,169,255,255,255,30,"Arail:B","!GMAILNUMBER","CENTER"
                  L,11,8,427,25,0,0,0,20,"Arial:B","!GMAILMESSAGE","CENTER"
                  What you posted didn't work because you were using SETVAR instead of SETLABEL.
                  Ride Runner RR's Myspace

                  "Being happy is not about having what you want, it's about wanting what you have."
                  "The best things in life are always free - but that doesn't mean money can't buy you good things."

                  Comment


                  • #12
                    Thanks Guino

                    Comment


                    • #13
                      Can you explain me how can i use the "IND,SHUFFLE,Indicators\Shuffle_off.png,Indicators \Shuffle_on.png" option with an AutoIt script and a skin.

                      If i understand well , i can have that:

                      Code:
                      IND,!myind,myind_off.png,myind_on.png
                      But how to define the x y positions for my indicators in my skin file and how i call it in my autoit script ?


                      Thanks for your lights

                      Comment


                      • #14
                        It should be:

                        Code:
                        I01,100,100,200,200,"!myind"
                        IND,!myind,myind_off.png,myind_on.png
                        (The IND line must be BELOW the line of the indicator -- but doesn't "have" to be the very next line to it).
                        Ride Runner RR's Myspace

                        "Being happy is not about having what you want, it's about wanting what you have."
                        "The best things in life are always free - but that doesn't mean money can't buy you good things."

                        Comment


                        • #15
                          Ho i see,

                          Code:
                          I01,100,100,200,200,!myind
                          or

                          Code:
                          I01,100,100,200,200,"!myind"
                          Thanks Guino

                          Comment

                          Working...
                          X