Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sound recognition/ trigger?
#3
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     Help - how to add the trigger to the macro
Code:
Copy      Help
function hwnd idObject idChild
Acc a.ObjectFromEvent(hwnd idObject idChild)
out a.Name

play standard sound to test the trigger
Macro Macro1678
Code:
Copy      Help
bee 4

play some other sound defined in Control Panel -> Sound
Macro Macro1678
Code:
Copy      Help
PlaySound("DeviceConnect" 0 SND_ALIAS|SND_ASYNC|SND_SYSTEM)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)