Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Playing a Loud Sound after the Process Completion
Message
From
05/01/2014 07:56:45
 
 
To
05/01/2014 02:07:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01591346
Message ID:
01591353
Views:
78
>I am Processing some data which takes enough time. I need that after the process is completed a LOUD Sound is played at regular interval (as we see in washing Machines etc), and the sound should be played unless the Mouse Movement or some keyboard activity is performed.

Playing a sound is easy. Either use CHR(7) or the Windows API:

http://www.tomorrowssolutionsllc.com/Articles/Make%20Them%20Hear%20You!.PDF

However, controlling the volume is another story. A search for "windows api volume control" turns up a number of hits; I have no idea whether any of them actually let you change the volume.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform