Author Topic: Can't use alt codes  (Read 4957 times)

Offline TuxerTuxar

  • Single posting newcomer
  • *
  • Posts: 6
Can't use alt codes
« on: January 17, 2025, 05:09:36 pm »
Hi! I want to use Code::Blocks to practice writing in the C programming language, but the alt codes (Most notably Alt+123, which gives you {, and Alt+125, which gives you }.) do not work, and since my keyboard doesn't have keys specifically for those, these Alt codes are important and I am pretty much screwed without them.
Could somebody please help me out with this issue? It would be heavily appreciated!   ;D

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1672
Re: Can't use alt codes
« Reply #1 on: January 17, 2025, 05:25:04 pm »
Those codes (and Alt-126) work here. In fact, pressing Alt-123 shows {} because the code completion plugin adds the closing brace.

Offline TuxerTuxar

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't use alt codes
« Reply #2 on: January 17, 2025, 05:34:29 pm »
Those codes (and Alt-126) work here. In fact, pressing Alt-123 shows {} because the code completion plugin adds the closing brace.
No, what I'm saying is that pressing Alt+123 doesn't do anything, it doesnt add an opening bracket or a closing bracket, just nothing

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1672
Re: Can't use alt codes
« Reply #3 on: January 17, 2025, 05:50:22 pm »
I understood you correctly, I am saying that my C::B (last nightly on MSW7) shows the codes as expected.

You have not stated your C::B version or OS. Certainly, on Mint18 said codes are not shown, but the same happens with the text editor and the console.

Offline TuxerTuxar

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't use alt codes
« Reply #4 on: January 17, 2025, 06:37:06 pm »
I understood you correctly, I am saying that my C::B (last nightly on MSW7) shows the codes as expected.

You have not stated your C::B version or OS. Certainly, on Mint18 said codes are not shown, but the same happens with the text editor and the console.

Here is the information on my version of Code::Blocks
Name             : Code::Blocks
Version          : 20.03-r11983
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxMSW port)
Version 3.1.3 (Unicode: wchar_t, debug level: 1),
compiled at Nov  1 2019 18:53:26

Runtime version of toolkit used is 10.0.

Here is the information on my version of Windows:

Microsoft Windows
Versione 23H2 (build SO 22631.4391)
C Microsoft Corporation. Tutti i diritti riservati.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1672
Re: Can't use alt codes
« Reply #5 on: January 17, 2025, 06:50:22 pm »
Try the last nightly (it does not need installation) or wait for the new release, hopefully it will be out this month.

Offline TuxerTuxar

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't use alt codes
« Reply #6 on: January 17, 2025, 07:04:02 pm »
Try the last nightly (it does not need installation) or wait for the new release, hopefully it will be out this month.

It doesn't work! It says "wxmsw32u_gcc_cb.dll" and "libstdc++-6.dll" weren't found!

Offline TuxerTuxar

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't use alt codes
« Reply #7 on: January 17, 2025, 07:51:01 pm »
Nevermind, I fixed the issue, alt codes still don't work and I can't Build

Offline PB

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: Can't use alt codes
« Reply #8 on: January 18, 2025, 06:03:46 pm »
Works for me as expected with C::B 20.03 on Windows 10.

I am holding left <Alt> and type the number on the numeric keypad.

Offline Михаил Агарков

  • Single posting newcomer
  • *
  • Posts: 4
  • Highly sensitive programmer. ☮☯
    • Codeberg
Re: Can't use alt codes
« Reply #9 on: January 18, 2025, 06:05:34 pm »
It depends on the OS AFAIK.