03-01-2012, 02:20 PM
For some standard sounds can be used accessible object trigger SOUND. It works on Windows 7 but not on XP.
Function SoundTrigger
Trigger $a 1 -11 "" "#43" "" "" "" "" 5 "" "" "" "" 0x1000
play standard sound to test the trigger
Macro Macro1678
play some other sound defined in Control Panel -> Sound
Macro Macro1678
Function SoundTrigger
Trigger $a 1 -11 "" "#43" "" "" "" "" 5 "" "" "" "" 0x1000

function hwnd idObject idChild
Acc a.ObjectFromEvent(hwnd idObject idChild)
out a.Name
play standard sound to test the trigger
Macro Macro1678
play some other sound defined in Control Panel -> Sound
Macro Macro1678