Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Headset script
- Run, RunDll32.exe shell32.dll`,Control_RunDLL mmsys.cpl`,`,0
- WinActivate, Sound
- WinWaitActive, Sound, , 2
- if ErrorLevel
- {
- MsgBox, Sound Window not found!
- return
- }
- ControlSend, SysListView321, {DOWN 3}, Sound
- ControlSend, Button2, {DOWN 2}{ENTER}, Sound
- WinClose, Sound
- ------------------------------------------------------
- //Speaker script
- Run, RunDll32.exe shell32.dll`,Control_RunDLL mmsys.cpl`,`,0
- WinActivate, Sound
- WinWaitActive, Sound, , 2
- if ErrorLevel
- {
- MsgBox, Sound Window not found!
- return
- }
- ControlSend, SysListView321, {DOWN 2}, Sound
- ControlSend, Button2, {DOWN 2}{ENTER}, Sound
- WinClose, Sound
Add Comment
Please, Sign In to add comment