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?
Announcement
Collapse
No announcement yet.
Add Volume Control to your AMS Menu
Collapse
This topic is closed.
X
X
-
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.
Leave a comment:
-
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?
Leave a comment:
-
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.)
Leave a comment:
-
Re: Add Volume Control to your AMS Menu
I am using AMS 4.01 Version.
Leave a comment:
-
Re: Add Volume Control to your AMS Menu
What version of AutoPlay are you using?
(Dallasfreak's instructions were for version 3.0.)
Leave a comment:
-
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.
Leave a comment:
-
Re: Add Volume Control to your AMS Menu
Oh I am a dork, duh.
thanks!
Leave a comment:
-
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
Leave a comment:
-
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
Leave a comment:
-
Leave a comment:
-
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!
Leave a comment:
-
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
Leave a comment:
-
Re: Add Volume Control to your AMS Menu
I have installed the volume control language and it works just fine as an open page exectuion.
I have included the three suggested variables to allow the control to work under the NT, 2000, and 98 OS's.
My Question is: If using the language as a link from a single text command (Volume) how do you include all 3 variables for the different operaing systems,
When I use the open page condition the location of the control varies and it often hides text, So I want to have the viewer click on the Volume text which will place
the control at the desired location.
Leave a comment:
Leave a comment: