Page 1 of 1

Help with script

Posted: 26 Jan 2018, 13:32
by Luxum
Hello I need some help getting this script together, ive been googling for 2 hrs trying to do it but no success yet.

Very simple script but I cant get it to reset so to speak.

Ins::
Soundplay, no.wav

Soundplay, yes.wav

basically thats just showing what code im trying to get working. Ive tried a couple of things but anyway I want to press Insert and have Sound 1 play, press Insert again and have sound 2 play and then have it so when pressing insert itll play Sound 1 again. So basically Im trying to cycle these 2 sounds with Insert. Thanks

Re: Help with script

Posted: 26 Jan 2018, 18:32
by boiler
Ins::SoundPlay, % Toggle:=!Toggle ? "no.wav" : "yes.wav"

Re: Help with script

Posted: 26 Jan 2018, 22:59
by GreatGazoo
do you have the .wav file in the same folder as your script ?

Re: Help with script  Topic is solved

Posted: 26 Jan 2018, 23:02
by boiler
His script is playing one of the files, so location isn't the problem. He just didn't know how to cycle between them, which I showed him how.

Re: Help with script

Posted: 26 Jan 2018, 23:05
by GreatGazoo
interesting