Jump to content


Photo

Autora lua


    8 replies to this topic

    #1 Ethan

    Ethan

      Newbie

    • Members
    • Pip
    • 6 posts

      Posted 05 April 2014 - 10:07 AM

      possible to have windower.send_command through ffxi macro set with autora.lua?

       

      example ;

       

      with spellcast, i can send a console command : //sc f RNG to load RNG.xml

                             i can send same command to console by ffxi macro : /sc f RNG to load RNG.xml

       

      i would like to send by ffxi macro //ara start or //ara shoot or //ara invoke autora start.

       

      thank you for help



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 05 April 2014 - 10:10 AM

      /console <command>

       

      Like this:

       

      /console ara start


      #3 Ethan

      Ethan

        Newbie

      • Members
      • Pip
      • 6 posts

        Posted 03 October 2014 - 05:47 PM

        if halt_on_tp == true then

            windower.send_command('@wait 1.5;input /ws Sidewinder <t>')

            return

         

        i want replace Sidewinder by Jishnu's Radiance

         

        i am stuck with the ' ans the s in the string : Jishnu's Radiance

        i can't concatenate.

         

        How to send ffxi macro command like ^3 via windower.send_command?

         

        Thank you for help.



        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 04 October 2014 - 12:25 AM

        '@wait 1.5;input /ws "Jishnu\'s Radiance" <t>'



        #5 Ethan

        Ethan

          Newbie

        • Members
        • Pip
        • 6 posts

          Posted 04 October 2014 - 07:39 AM

          How to send ffxi macro command like : ^3, Ctrl 3, @3 , Alt 3 with windower.send_command?

           

          Thank you Arcon



          #6 Arcon

          Arcon

            Advanced Member

          • Windower Staff
          • 1189 posts
          • LocationMunich, Germany

          Posted 04 October 2014 - 08:06 AM

          You cannot do that. You could try simulating keypresses, but I imagine that would become quite tedious pretty fast. Something like this:

          windower.send_command('setkey ctrl down; setkey 3 down; wait 0.2; setkey ctrl up; setkey 3 up')

           

          I haven't tried this, I'm not sure exactly if it works, but something along those lines. Also, this will interfere with your regular key presses during that time.

           

          If you use Yush, there's a way to execute Yush macros directly by typing "yush press ctrl 3" and it will not interfere with regular key presses, but it doesn't work like that otherwise.



          #7 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 04 October 2014 - 05:07 PM

            when a name has a ' in its name

            "Jishnu's Radiance"

            when a name does not have a '

            "Sidewinder"

            'Sidewinder'

             

            if you have a string that includes a command for ffxi without a ' in one of the names (example: /ja "Healing Waltz" <me>)

            '/ja "Healing Waltz" <me>'

             

            if you have a string that includes a command for ffxi with a ' in one of the names (example: /ws "Jishnu's Radiance" <t>)

            '/ws "Jishnu\'s Radiance" <t>'



            #8 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 04 October 2014 - 06:36 PM

            You should really just stick to one, ' or ", not use what's best for each situation because it just gets confusing. Usually ' will do the trick everywhere, the only exception is that you need to escape the ' character when it appears inside such a string. The same is true for ". All the above examples could as well have been switched.



            #9 sdahlka

            sdahlka

              Advanced Member

            • Members
            • PipPipPip
            • 324 posts

              Posted 05 October 2014 - 06:58 AM

              i know but i perfer not to use the escape if i can avoide it its eaiser for me to read it






              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users