btw, here is the source for those interested..
; Set wave volume upon startup
; Source: hxxp://www.donationcoder.com/forum/index.php?topic=13989.0
; Note: compile the script to get the startup link working
#SingleInstance, force
#NoEnv
SendMode, Input
appname=SetWav
ini_file=%appname%.ini
Gosub, Get_INI
If WavLevel <> 0
{
FileCreateShortcut, %A_WorkingDir%\%appname%.exe, %A_StartupCommon%\%appname%.lnk, %A_WorkingDir%
GoSub SetWave
}
Else
{
;other tasks here..
}
Return
SetWave:
SoundSetWaveVolume, %WavLevel%
TrayTip,%appname%,Current wave volume: %WavLevel%,,1
Sleep, 5000
GoSub GuiEscape ;exit
Return
Get_INI:
IfNotExist, %ini_file%
{
GoSub, ShowGUI
}
Else
{
IniRead,WavLevel,%ini_file%,Settings,WavLevel,100
If WavLevel>100
WavLevel=100
}
Return
ShowGUI:
Gui, +ToolWindow
Gui, Add, GroupBox, x6 y6 w140 h54, Enter WAV level: (0-100)`%
Gui, Add, Edit, x16 y30 w80 h20 vNewWavVol Limit3 Number,
Gui, Add, Button, x100 y30 h20 Default, OK
Gui, Show, , %appname%
Return
GuiClose:
ButtonOK:
Gui, Submit
comments=
comments=`;%A_Space%Ini settings for SetWav script.
comments=%comments%`n`;%A_Space%
comments=%comments%`n`;%A_Space%This file contains the configurable settings.
comments=%comments%`n`;%A_Space%--------------------------------------
comments=%comments%`n`;%A_Space%You may edit this file but not while the script is running.
comments=%comments%`n`;
FileAppend,%comments%,%ini_file%
If NewWavVol>100
NewWavVol=100
IniWrite,%NewWavVol%,%ini_file%,Settings,WavLevel
FileAppend,`n,%ini_file%
Return
GuiEscape:
ExitApp