Announcement

Collapse
No announcement yet.

Add Volume Control to your AMS Menu

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Re: Add Volume Control to your AMS Menu

    I am still learning all this. Could you help me with what you are doing here. I want to add this to my project and test. I am a lingo programmer but never worked with these types of variables before. (Always hard coded paths) What code did you use and where? Thanks

    Comment


    • #17
      Re: Add Volume Control to your AMS Menu

      This is by far the most valuable little AMS trick anyone has laid on me yet! You are indeed some sort of minor deity from the looks of it... Thanks much!

      Comment


      • #18
        Re: Add Volume Control to your AMS Menu

        lol ... um ... http://neodezign.tripod.com/volume.htm
        -
        = Derek
        ["All glory comes from daring to begin" - fortune cookie]

        Comment


        • #19
          Re: Add Volume Control to your AMS Menu

          yes indeed... that trick is WICKED sweet! thanks for the great tip!!! it will com in VERY handy

          Comment


          • #20
            Re: Add Volume Control to your AMS Menu

            What action would I do this in 4.0? I have tried a bunch but have failed.

            Thanks

            Comment


            • #21
              Re: Add Volume Control to your AMS Menu

              "File - Execute"
              --[[ Indigo Rose Software Developer ]]

              Comment


              • #22
                Re: Add Volume Control to your AMS Menu

                Oh I am a dork, duh.

                thanks!

                Comment


                • #23
                  Re: Add Volume Control to your AMS Menu

                  Dallasfreak, thank You very much for the volume control code.

                  I was asking for something like that for very long time, and noone was able to help.

                  But I have one question. How do You insert Boolean conditions
                  in AMS ? What should I click to do that ?

                  EXECUTE PROGRAM
                  FILE NAME: %WinDir%\SndVol32.exe
                  ARGUMENTS: DOSCommand "[WindowsDir]\sndvol32.exe" " "/tray" "Normal"
                  WORKING DIR: %WinDir%
                  BOOLEAN: %IsWin2000% = FALSE; %IsWinNT4% = FLASE

                  I had no problem with first 3 lines, but I don't know how to
                  insert BOOLEAN.

                  I was not able to figure that out. Anybody, Please HELP me.

                  Comment


                  • #24
                    Re: Add Volume Control to your AMS Menu

                    What version of AutoPlay are you using?

                    (Dallasfreak's instructions were for version 3.0.)
                    --[[ Indigo Rose Software Developer ]]

                    Comment


                    • #25
                      Re: Add Volume Control to your AMS Menu

                      I am using AMS 4.01 Version.

                      Comment


                      • #26
                        Re: Add Volume Control to your AMS Menu

                        Then you want to put the code for each operating system in an IF block -- i.e., put it between an IF and an END IF action.

                        Inside the IF action, you'll want to use an expression like this:

                        (%IsWin2000% = false) AND (%IsWinNT4% = false) AND %IsWinXP% = false)

                        Or, a more condensed form:

                        !%IsWin2000% AND !%IsWinNT4% AND !%IsWinXP%

                        Or heck even like this if you want:

                        !(%IsWin2000% or %IsWinNT4% or %IsWinXP%)

                        All three of these are true only if the user's not running Windows 2000, NT4, or XP. (So, for example, it's true if they're running Windows 98, or ME.)
                        --[[ Indigo Rose Software Developer ]]

                        Comment


                        • #27
                          Re: Add Volume Control to your AMS Menu

                          I can't seem to test the %WinDir% on a Win98SE machine. I have tried a command prompt, run command how would I test this variable.

                          I have the following lines in my project for a volume

                          If ((%IsWinXP% OR %IsWinNT4% OR %IsWin2000%) = TRUE)
                          File.Execute ("WinDir%\system32\sndvol32.exe" , "/traynormal" , Continue)
                          ELSE
                          File.Execute ("WinDir%\sndvol32.exe" , "/traynormal" ,Continue)
                          END IF

                          Should that work?
                          TJ-Tigger
                          "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                          "Draco dormiens nunquam titillandus."
                          Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                          Comment


                          • #28
                            Re: Add Volume Control to your AMS Menu

                            That variable won't work from the command line, it's internal to AutoPlay.

                            Make sure you include the first %, btw. It's %WinDir%, not WinDir%.

                            Don't get this confused with environment variables...they aren't the same.
                            --[[ Indigo Rose Software Developer ]]

                            Comment


                            • #29
                              Re: Add Volume Control to your AMS Menu

                              Okay, dokey. I will transfer the files to a 98 box and test it there.

                              Does anyone use CD-RW for testing their projects?
                              TJ-Tigger
                              "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                              "Draco dormiens nunquam titillandus."
                              Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                              Comment

                              Working...
                              X