Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System sounds
Message
From
30/10/1998 18:59:10
 
 
To
30/10/1998 18:40:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00151382
Message ID:
00153096
Views:
22
>>>Hi Dave
>>>Using set bell you can't call it again until it finishes playing.
>>>Two answers.
>>>1/Determine the length of the sound and wait in code the same period of time ( a real PITA, but that's what I did for an sound rich app)
>>>2/Use shellexecute API to play it via some other app.
>>>The duration parameter is essential, but ignored by Fox.
>>>HTH
>>
>>Well, that was way to simple...
>>on a PII 266 I only have to loop 35,000 times to space out the bells
>>now I only have to make 3 variations to cover the customers 6 workstations
>>2 PII 266, 3 200. and 1 166.
>>Thanks I would have been there a few more days...
>
>?? chr(7)
>t1= seconds() + m.wav_length && seconds length of wav file
>do while seconds() < m.wav_length
>enddo
>* play next sound
>* works on all machines


Forgot to add, that in that loop, you can do lots of things, flash lights, doevents, run some queries...

KT is right, you might wan't to consider some other approachs. My problem was fairly simple, just had to amuse the onlookers ( treasury officials in a $250,000 prize draw ) while I found a winner and make them think it was a complicated, big deal. :-) Horses for courses.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform