mIRC Home    About    Download    Register    News    Help

Topic Options
#84925 - 01/06/04 10:49 PM Ctrl + Alt chars
Zyzzyx26 Offline
Hoopy frood

Registered: 15/02/04
Posts: 714
Loc: Brasil
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.
_________________________
"All we are saying is give peace a chance" -- John Lennon

Top
#84926 - 01/06/04 11:12 PM Re: Ctrl + Alt chars
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
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.
_________________________
Those who fail history are doomed to repeat it

Top
#84927 - 01/06/04 11:20 PM Re: Ctrl + Alt chars
Zyzzyx26 Offline
Hoopy frood

Registered: 15/02/04
Posts: 714
Loc: Brasil
Thanks for the code! laugh

Zyzzy.
_________________________
"All we are saying is give peace a chance" -- John Lennon

Top
#84928 - 01/06/04 11:20 PM Re: Ctrl + Alt chars
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
anytime smile glad to be of help smile
_________________________
Those who fail history are doomed to repeat it

Top
#84929 - 02/06/04 01:31 PM Re: Ctrl + Alt chars
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
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


Edited by FiberOPtics (02/06/04 01:33 PM)
_________________________
Gone.

Top
#84930 - 02/06/04 02:56 PM Re: Ctrl + Alt chars
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
You might be interested in this thread. smile

Top
#84931 - 02/06/04 02:58 PM Re: Ctrl + Alt chars
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
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)
_________________________
Those who fail history are doomed to repeat it

Top
#84932 - 02/06/04 08:28 PM Re: Ctrl + Alt chars
Zyzzyx26 Offline
Hoopy frood

Registered: 15/02/04
Posts: 714
Loc: Brasil
Cool, glad to know it will be fixed! laugh

Thanks everybody for the help!

Zyzzy. smile
_________________________
"All we are saying is give peace a chance" -- John Lennon

Top