i hope i can explain better, but i have problem with english
how to embed specific song in specific WMP?
and how to set a certain volume in a particular WMP?
i try to read this but still not enough
here's my code so far :
Code: Select all
Gui, 1:Add, Button, x100 y1 w80 h40 gVolBut1Up vMusic1Up, BG Vol Up
Gui, 1:Add, Button, xp y+10 w80 h40 gVolBut1Down vMusic1Down, BG Vol Down
Gui, 1:Add, Button, x+10 y1 w80 h40 gVolBut2Up vMusic2Up, SE Vol Up
Gui, 1:Add, Button, xp y+10 w80 h40 gVolBut2Down vMusic2Down, SE Vol Down
Gui, 1:Add, Button, x1 y1 w80 h40 gMBut1 vVarBut1, BG Music
Gui, 1:Add, Button, xp y+10 w80 h40 gMBut2 vVarBut2, Sound Effect
Gui, 1:Add, ActiveX, xp y+10 w500 h100 vWMP1, WMPLayer.OCX
Gui, 1:Add, ActiveX, xp y+10 w500 h100 vWMP2, WMPLayer.OCX
Gui, 1:Show, , Window
return
GuiEscape:
GuiClose:
ExitApp
Mbut1:
wmp := ComObjCreate("WMPlayer.OCX")
FileSelectFile, file, 2,, Select WMP Compatable File:
wmp.url := file
return
MBut2:
wmp := ComObjCreate("WMPlayer.OCX")
FileSelectFile, file, 2,, Select WMP Compatable File:
wmp.url := file
return
VolBut1Up:
wmp.settings.volume := 100
return
VolBut1Down:
wmp.settings.volume := 10
return
VolBut2Up:
wmp.settings.volume += 10
return
VolBut2Down:
wmp.settings.volume -= 10
return