拉撒路帕斯卡蜂鸣命令(Lazarus Pascal beep command)

编程入门 行业动态 更新时间:2024-10-27 00:24:34
拉撒路帕斯卡蜂鸣命令(Lazarus Pascal beep command)

我在Windows上运行Lazarus。 我真的想让节目“哔哔”。 看起来你可以在Pascal中使用:

windows.beep(300,500);

但不是在拉撒路! 是否有另一个我可以使用的命令?

更新:

sysutils.beep()

这很有效,但我真的很想设置声音的频率和持续时间

I'm running Lazarus on Windows. I would really like to make the program "Beep". It appears that you can do so in Pascal using:

windows.beep(300,500);

But not in Lazarus! Is there another command that I can use?

Update:

sysutils.beep()

This works, but I'd really like to set the frequency and duration of sound

最满意答案

Afaik这是可以工作多年的功能。 (Dev Pascal已超过十岁)。

有什么不同的是,Lazarus并没有像Delphi那样自动将Windows添加到uses子句中。

Afaik this is functionality that worked for ages. (Dev Pascal is over ten years old).

What is different is that Lazarus does not automatically add Windows to the uses clause, like Delphi does.

更多推荐

本文发布于:2023-08-07 12:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464295.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   蜂鸣   拉撒路   Lazarus   command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!