Macro command SOUND

Macro command SOUND

5axes
Advisor Advisor
1,288 Views
7 Replies
Message 1 of 8

Macro command SOUND

5axes
Advisor
Advisor

As any one of you have already use the command SOUND ?    I wanted to use it expecting to emit a specific sound but  I don't now how to use it 

 

SOUND "something"  always make a beep and you must specify something after SOUND to use the command but it's always the same beep. 

 

Note I was expecting to use this instruction to inform the user after a long calculation process that the macro is over, like that you can do something else on the pc waiting for the end of the calculation process.

 

 

0 Likes
Accepted solutions (2)
1,289 Views
7 Replies
Replies (7)
Message 2 of 8

kukelyk
Advisor
Advisor

I do not know how to use Sound command in pmill, but You can call a bat(ch) file to do that..

Message 3 of 8

Anonymous
Not applicable

Hi,
I think if this sound comes from motherboard, you're not be able to change it. But if it comes from speakers, it is possible (of course if Autodesk programmers allow it).

 

 

 

Mateusz

0 Likes
Message 4 of 8

urizenYHS3W
Advocate
Advocate

Give it the pathname to a wav file or the name of a system sound.

 

0 Likes
Message 5 of 8

5axes
Advisor
Advisor

urizenYHS3W wrote :

Give it the pathname to a wav file or the name of a system sound.

 


If I try something like : SOUND C:\Windows\winsxs\amd64_microsoft-windows-shell-sounds\tada.vaw   I don't get a beep but no sound can be heard !

0 Likes
Message 6 of 8

chris.hobson
Alumni
Alumni
Accepted solution

This is very old and simple command, give it the path to a sound file without any "quotes", here's an example that works for me

 

sound c:/temp/LYNC_videocall.wav

 

The command will not work if you give it quotes, or a macro variable - It only works with a pathname.

 

0 Likes
Message 7 of 8

chris.hobson
Alumni
Alumni
Accepted solution

Don't use \ use /

 

SOUND C:/Windows/winsxs/amd64_microsoft-windows-shell-sounds/tada.wav (I assume you meant wav not vaw)

 

The best thing is to copy a wav file somewhere easy like c:/sounds/xxx.wav and use that

 

SOUND c:/sounds/xxx.wav

 

 

Message 8 of 8

5axes
Advisor
Advisor

 

TADA !!!

 

Thanks a lot it works if you respect  your recommendations :

  • A simple path
  • A sound file path without any "quotes"
  • And use / to separate the directory in the sound file path

 

SOUND c:/dcam/Sounds/tada.wav

 

0 Likes