technicalte
technicalte

Reputation: 19

How to make Sound Alert in Lua?

I want to write a function

whenever I call it must be make a sound alert is it possible in Lua ?

Upvotes: 1

Views: 3123

Answers (1)

Mijago
Mijago

Reputation: 1639

This should be your solution:

os.execute("echo \7")

or

os.execute("echo \a")

This creates a short beep (using the speaker, not the beeper).

** Tested on Windows. But should work in UNIX also.

Upvotes: 2

Related Questions