mIRC Homepage
Posted By: Zyzzyx26 Ctrl + Alt chars - 01/06/04 09:49 PM
In word or notepad i am able to press [Ctrl]+[Alt]+[N] and get the character ñ; or Ctrl+Alt+O and get ó (very used char in portuguese).

I *think* I remember I was able to do that in mIRC as well, but dont remember how. Any ideas? smile

Thanks,
Zyzzyx.
Posted By: landonsandor Re: Ctrl + Alt chars - 01/06/04 10:12 PM
There's another thread here that gives a good alias for this type of thing, but this should help you out too.

Code:
/ascii {
  if (!@ASCII) { window -E @ASCII Times New Roman,11 }
  var %ascii 1
  while (%ascii < 256) { aline @ASCII $ $+ chr( $+ %ascii $+ ) = $chr(%ascii) | inc %ascii }
}



Keep in mind that if you want to type it in manually, you'd use ALT and the number pad. Let me give you some examples (based off of the font I normally use which is Times New Roman - different fonts will display different characters):

In mirc, typing //echo a $chr(49) would result in:

a 1 (the number ONE)

If you then held the ALT down and pressed 0049 on your number pad, you'd see a 1 (the number ONE) in your editbox.


Another example:

In mirc, typing //echo a $chr(123) would result in:

a {

If you then held the ALT down and pressed 0123 on your number pad, you'd see a { in your editbox.
Posted By: Zyzzyx26 Re: Ctrl + Alt chars - 01/06/04 10:20 PM
Thanks for the code! laugh

Zyzzy.
Posted By: landonsandor Re: Ctrl + Alt chars - 01/06/04 10:20 PM
anytime smile glad to be of help smile
Posted By: FiberOPtics Re: Ctrl + Alt chars - 02/06/04 12:31 PM
Hey landon,

shouldn't if !@ASCII be changed to if !$window(@ASCII) ?

Code:
 
alias test {
  window @test
  if !@test { echo -a window not present }
  else { echo -a window present }
}

/test --> window not present

Greets
Posted By: Iori Re: Ctrl + Alt chars - 02/06/04 01:56 PM
You might be interested in this thread. smile
Posted By: landonsandor Re: Ctrl + Alt chars - 02/06/04 01:58 PM
Yes you're right altho it does work the other way. I just copy/pasted an old alias of mine and never error checked it (since it works)
Posted By: Zyzzyx26 Re: Ctrl + Alt chars - 02/06/04 07:28 PM
Cool, glad to know it will be fixed! laugh

Thanks everybody for the help!

Zyzzy. smile
© mIRC Discussion Forums