Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Key sound

Author
Message
Gijs
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location:
Posted: 26th Apr 2010 18:33
How can you apply a sound to a key, like:
Page Up=Yes.wav
Page Down=No.wav

Maybe with PB?
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 26th Apr 2010 19:38
You could do a script that contains something like this in it (snip of code from our script to give an idea):

scancodekeypressed=201,sound=$0

scancodekeypressed=209,sound=$1

Assign the Yes.wav to sound=$0 field in the key properties, and the no.wav to the sound=$1 field.

I have a script that uses a keypad and if the correct number is pressed, one sound plays. If an incorrect key is pressed, an error sound is played.

You can do this with or without a mod.

- BlackFox

Login to post a reply

Server time is: 2024-11-24 23:32:36
Your offset time is: 2024-11-24 23:32:36