Help with script

Get help with using AutoHotkey and its commands and hotkeys
Luxum

Help with script

26 Jan 2018, 13:32

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
User avatar
boiler
Posts: 2409
Joined: 21 Dec 2014, 02:44

Re: Help with script

26 Jan 2018, 18:32

Ins::SoundPlay, % Toggle:=!Toggle ? "no.wav" : "yes.wav"
GreatGazoo
Posts: 69
Joined: 28 Dec 2017, 02:53

Re: Help with script

26 Jan 2018, 22:59

do you have the .wav file in the same folder as your script ?
User avatar
boiler
Posts: 2409
Joined: 21 Dec 2014, 02:44

Re: Help with script

26 Jan 2018, 23:02

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: bennybroseph, Google [Bot], kronos90, maleko48, tmplinshi, XShayanX and 223 guests