Announcement

Collapse
No announcement yet.

Button command to run autoit exe

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

  • Button command to run autoit exe

    I've done this before but now I can't figure out how it's done. I also can't find with a search.
    I made an exe with autoit and when I click a button I want it to run the exe. I've tried a million and one combinations to make it work but for some reason it isn't.

    Nevermind, I'm an idiot. It helps if you have the .exe in the folder you're pointing to and not just the .au3. Wow.
    PROGRESS:
    Hardware: 100%
    Software: 99% - Always upgrading and improving.
    Installation: 100%

    WORKLOG:
    2005 F-150

  • #2
    Originally posted by Tical84 View Post
    I've done this before but now I can't figure out how it's done. I also can't find with a search.
    I made an exe with autoit and when I click a button I want it to run the exe. I've tried a million and one combinations to make it work but for some reason it isn't.

    Nevermind, I'm an idiot. It helps if you have the .exe in the folder you're pointing to and not just the .au3. Wow.
    Hahahah! I have done that a few times actually LOL. Always remember, Right click, Compile
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

    Comment


    • #3
      I did that but my default location was my desktop, then when I moved it, I moved the .au3 instead of the .exe.
      PROGRESS:
      Hardware: 100%
      Software: 99% - Always upgrading and improving.
      Installation: 100%

      WORKLOG:
      2005 F-150

      Comment


      • #4
        This is three examples, how to call .exe with RR.
        Code:
        "MyApp77","Load;googlemapstrack.skin||RUN;$SKINPATH$Scripts\GoogleMapsTrack\GoogleMapsTrack.exe;GoogleMapsTrack"
        "MyApp78","Load;Lyrics_Display.skin||RUN;$SKINPATH$Scripts\MiniLyrics\MiniLyricsBox.exe;MLEmbedder"
        "MyApp79","Load;Spotify.skin||RUN;D:\Program Files\Spotify\Spotify.exe;Spotify||RUNQ;$SKINPATH$flytomenu.exe|sliderMENU.skin":)

        Comment


        • #5
          I think it would be great if someone would post some up to date comments here as this has changed evidentally...
          Like diff between ; double ;; , | double || , quotes versus no quotes. Capital letters versus mixture/lower case. Where to put these commands? Which ExecTBL file to use. Theres one in Program files\Ride Runner AND My Documents... I have spent many hours searching with VERY conflicting, and confusing results!!
          Just a couple examples will help out tremendously.

          I am doing an Autoit app to operate the antenna via the parallel port. All easy stuff for me just need to be able to do a few things:

          1. execute the exe upon entering the HD radio skin
          2. execute another upon leaving the radio skin. (where to put these commands and what exactly are they?)
          I will post my tools and share them when complete.
          Thanks.

          Comment


          • #6
            use ONSOURCECHANGE event

            you dont want to lower antenna when you leave radio skin!!!

            you want it down, when your not using the radio


            a plugin would be soooo much quicker than an autoit3 script

            all you would have to do is watch for "ONSOURCECHANGE" and then check var ActiveSourceID

            but even then... you can do this without a plug in

            in exectlb.ini

            "ONSOURCECHANGE","IFVAR;ACTIVESOURCEID<>1;LOWERANT <<RAISEANT"
            "LOWERANT","whateveryouneedtolowertheant"
            "RAISEANT","whateveryouneedtoraisetheant"

            done

            i would do this in the GLOBAL exectlb....since i dont know anything about your system... and really you should NOT have any exectlb.ini file in program files\Ride Runner i will not
            be able to help, till more info is known
            (and im not talking about (BLANK) ExecTBL.ini)
            (course if you are in legacy mode, you would, but then you WOULD not have it in mydocuments\riderunner\config
            Last edited by mitchjs; 01-11-2012, 10:38 PM.
            -Thanks
            Mitch
            www.rush2112.net

            "Did you test it in carwings??"

            Sun, Come shine my way
            May healing waters bury all my pain
            Wind, Carry me home
            The fabric of reality is tearing apart
            The piece of me that died
            Will return To live again

            Comment


            • #7
              Thanks for the reply and help!

              Ok, yes makes sense to keep the antenna up even when leaving skin... got so caught up on just trying to get an exe to run I got ahead of myself!

              My system is nothing special. Win Xp Pro, P4 3Gig, 1 gig mem. I had Road runner installed prior to recently installing Ride runner and DFX5 (28th of dec). I did not remove road runner first. Mistake? I have noticed in task manager ride runner.exe AND road runner.exe running. This normal?

              As for the Exectbl.ini files. The one you mentioned above in My Documents\Ride runner\config is a third one! I did have one in Program files\ride runner (just renamed this one and all is same) The one that I was using is in C:\Documents and Settings\<my username>\My Documents\RideRunner\Skins\DFX5\Exectbl.ini
              By adding this to that file I was finally able to get my app to run when opening the HD radio skin:
              "Radio","Load;Radio_Player_HDRadio.skin||RUN;C:\Do cuments and Settings\<my username>\My Documents\RideRunner\Skins\DFX5\Scripts\ATest\ding .exe"

              (ding.exe is just a test autoit app)

              I am not sure I understand your above code... Does look like the way to go. My problem is I have never edited any of the Ride runner files, so I am struggling.

              Just wondering... wouldnt this be a VERY common need for many users installing Road runner/ride runner? I have done tons of searching with little results... seems like a sticky somewhere would be a great aide to many folks. Would make this application much more successful for the new interested customers.

              One other thought...If I close RR then reopen and it was on the HD radio it will continue there, but will the antenna go up upon restart?

              Sorry for the long winded reply!

              Thanks!

              Comment


              • #8
                Originally posted by BRfan View Post
                I have noticed in task manager ride runner.exe AND road runner.exe running. This normal?
                Yes, when running RideRunner, it will run a dummy RoadRunner.exe from its folder. This is to support much older plugins/scripts that looked for the "RoadRunner.exe" process. I don't know how many plugins/scripts that still need that process to be running. For example, on my systems I just delete it as all the stuff I'm running is new enough to not need it running. You could simply rename it and see if any additional problems occur ( most likely not) but...
                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


                • #9
                  riderunner and roadrunner arnt 100% compatable, some of the com objects that the newer riderunner uses, prob an issue with road runner...

                  you can just delete road runner install, and at worse case just re run the ride runner installer to make sure comobjects are right


                  for your antenna, you are doing the skin exectlb file, while that will work... it will only work for that skin
                  in

                  my documents\Ride Runner\Config is another exectbl.ini thats the global one...
                  and where i would do

                  Code:
                  "ONSOURCECHANGE","IFVAR;ACTIVESOURCEID<>1;LOWERANT<<RAISEANT"
                  "LOWERANT","whateveryouneedtolowertheant"
                  "RAISEANT","whateveryouneedtoraisetheant"

                  and with that, yes if you start RR and hd radio is the resumed audio, it will execute "RAISEANT"
                  -Thanks
                  Mitch
                  www.rush2112.net

                  "Did you test it in carwings??"

                  Sun, Come shine my way
                  May healing waters bury all my pain
                  Wind, Carry me home
                  The fabric of reality is tearing apart
                  The piece of me that died
                  Will return To live again

                  Comment


                  • #10
                    as for common, todays cars dont have power antennas... at least not the raise / lower kind! (Just the amplified)
                    i havent seen them in 10 years

                    oh and a lot of people just use my USB-IO-1 which is fully controllable from RideRunner


                    m
                    -Thanks
                    Mitch
                    www.rush2112.net

                    "Did you test it in carwings??"

                    Sun, Come shine my way
                    May healing waters bury all my pain
                    Wind, Carry me home
                    The fabric of reality is tearing apart
                    The piece of me that died
                    Will return To live again

                    Comment


                    • #11
                      So the following code is going to work as it is here when placed in the Global Exectbl.ini:

                      Code:
                      "ONSOURCECHANGE","IFVAR;ACTIVESOURCEID<>1;LOWERANT<<RAISEANT"
                      "LOWERANT","RUN;C:\Documents and Settings\<my username>\My Documents\RideRunner\Skins\DFX5\Scripts\Antenna\Lower.exe"
                      "RAISEANT","RUN;C:\Documents and Settings\<my username>\My Documents\RideRunner\Skins\DFX5\Scripts\Antenna\Raise.exe"
                      I assume the ACTIVESOURCEID of "1" is the Radio ID?

                      Sure wish there was a help file with all of these commands listed!

                      Thanks Blue for the info.
                      Thanks Mitch.

                      I appreciate the help cuz I need it! Having fun tho when things work finally.

                      BTW Mitch I couldnt find anywhere to buy the radio to serial cable for the HD Zoom radio I bought. All links show its now unavailable. I had to make my own! But it works so all is good.

                      Yes, maybe electric antennas arent so common but still even if 20 people have to search and rip their hair out like I have done - thats painful! A how sticky for each component for a computer system would be so helpful. For instance my project could be included as one option to get your antenna to work which could include scripts/apps, schematics, and rr/skin needs to get it to work.

                      Just a thought.

                      Thanks!

                      Comment


                      • #12
                        there is files with the commands.. while its not that organized, try looking in the documentation folder
                        and always review history.txt for the latest

                        you do relize, LOWEANT and RAISEANT are dynamic commands, i invented them just for this

                        yes ActivesourceID = 1 is hd radio, and yes it documented...

                        i dont make a "serial" cable, only USB, "serial" long gone....
                        -Thanks
                        Mitch
                        www.rush2112.net

                        "Did you test it in carwings??"

                        Sun, Come shine my way
                        May healing waters bury all my pain
                        Wind, Carry me home
                        The fabric of reality is tearing apart
                        The piece of me that died
                        Will return To live again

                        Comment


                        • #13
                          Originally posted by mitchjs View Post

                          you do relize, LOWEANT and RAISEANT are dynamic commands, i invented them just for this
                          So is that a yes my code will work? I am still not sure what dynamic commands are?

                          Comment


                          • #14
                            maybe dynamic isnt the best word

                            they are just some letters in a row that mean something

                            in this case the command parser, finds "LOWERANT" command in the exectbl and does the translation...

                            you know instead of asking me if it will work... try it!

                            and use SKINTOOL to test the commands
                            -Thanks
                            Mitch
                            www.rush2112.net

                            "Did you test it in carwings??"

                            Sun, Come shine my way
                            May healing waters bury all my pain
                            Wind, Carry me home
                            The fabric of reality is tearing apart
                            The piece of me that died
                            Will return To live again

                            Comment


                            • #15
                              Ok thanks

                              If anyone comes across this thread and would like my electronic designs and Autoit apps for using the parallel port to monitor external inputs from your car to fire commands in RR and the reverse - RR to control external hardware via the parallel port PM me!

                              I enjoy helping people so just let me know.

                              Comment

                              Working...
                              X