General information
Category:
Coding, syntax & commands
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only