quote: That function seems to be part of a native API, you're not going to be able to call that from vbs afaik.
Huh? Why the hell not?
quote: This command line tool can set volume
No it can't, it can increase or decrease the volume, but not set it.
And for some reason it uses a scale of 65536 for doing so.
Which means I need to do:
code: nircmd changesysvolume -65535
nircmd changesysvolume 65535 * <vol>/100
Except bloody Windows command line doesn't do maths, so it's not quite that simple...
code: set /a v = 65535 * %1 / 100
C:\path\to\nircmd.exe changesysvolume -65535
C:\path\to\nircmd.exe changesysvolume %v%
Which works, but is really ugly. :/
I hate Microsoft. :@ |