Please help me with my code

Discussion, questions and support.
Post Reply
kandarohi
Posts: 4
Joined: Feb 2nd, ’23, 16:53

Post by kandarohi » Feb 2nd, ’23, 16:58

I need to add to this code a BEEP sound so when I press the trigger button (which is *) there is a beep sound. Can you advise me how to update it to do this using the software.

Thankyou

the response to string * is


COMMAND
CoordMode, Mouse, Screen
MouseMove, 1012, 620
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 2nd, ’23, 21:33

You can use the following command to emit the default beep sound from the speaker.

Code: Select all

SoundPlay *-1
kandarohi
Posts: 4
Joined: Feb 2nd, ’23, 16:53

Post by kandarohi » Feb 3rd, ’23, 11:51

I tried this and it didnt work unfortunately.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 3rd, ’23, 22:13

Then try one of these:

Code: Select all

SoundBeep  ; Play the default pitch and duration.
SoundBeep, 750, 500  ; Play a higher pitch for half a second.
kandarohi
Posts: 4
Joined: Feb 2nd, ’23, 16:53

Post by kandarohi » Feb 15th, ’23, 10:26

Tom wrote: Feb 3rd, ’23, 22:13 Then try one of these:

Code: Select all

SoundBeep  ; Play the default pitch and duration.
SoundBeep, 750, 500  ; Play a higher pitch for half a second.
I dont know if Im putting it in wrong...Im very inexperienced with this but there are no sounds as a result. This is how Im putting it in..


CoordMode, Mouse, Screen
MouseMove, 1012, 620
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
Send, {LButton}
Sleep, 700
SoundPlay *-1
SoundBeep
SoundBeep, 750, 500

Can you tell me if the code text is correctly written out for the sound to be produced?

Thank you Tom for your help
User avatar
Marko
Posts: 1719
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Feb 15th, ’23, 20:56

All three should work. Maybe check your audio settings.
Post Reply