Recent

Author Topic: sysutils messagebeep question  (Read 453 times)

TBMan

  • Sr. Member
  • ****
  • Posts: 334
sysutils messagebeep question
« on: February 22, 2025, 10:24:08 am »
I can only get two sounds, mb_ok and mb_iconhand to work, others like, mb_iconexclamation and mb_iconasterisk all sound like mb_ok although they all have different values. MB_Iconquestion doesn't work at all.

Any suggestions to getting other window's tones?
I love programming.


Newest game (clone),
Missile Commander:
https://www.youtube.com/watch?v=tgKz0cxog-k

PascalDragon

  • Hero Member
  • *****
  • Posts: 6263
  • Compiler Developer
Re: sysutils messagebeep question
« Reply #1 on: February 22, 2025, 03:20:03 pm »
MessageBeep is a directly imported Windows API function, so better look at the corresponding documentation. And there it's explained that the different parameters directly map to different specific Windows sounds. At least for me some of them are simply set to the same sound file (you can change these in the Sound Control Panel), so they simply wouldn't sound different.

TBMan

  • Sr. Member
  • ****
  • Posts: 334
Re: sysutils messagebeep question
« Reply #2 on: February 22, 2025, 04:18:12 pm »
MessageBeep is a directly imported Windows API function, so better look at the corresponding documentation. And there it's explained that the different parameters directly map to different specific Windows sounds. At least for me some of them are simply set to the same sound file (you can change these in the Sound Control Panel), so they simply wouldn't sound different.

Thank you!
I love programming.


Newest game (clone),
Missile Commander:
https://www.youtube.com/watch?v=tgKz0cxog-k

 

TinyPortal © 2005-2018