| View previous topic :: View next topic |
| Author |
Message |
New Guy Guest
|
Posted: Sat Sep 05, 2009 6:18 pm Post subject: Ascii code for "square root" |
|
|
Hi
I can make Microsoft Word draw alpha by pressing WinKey+a
All the stuff I read says that square root is character 251, so this should work (Winkey+s):
But it doesn't - anyone help me out?
Thanks |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sat Sep 05, 2009 6:27 pm Post subject: |
|
|
| Code: | | #s::Send {Alt Down}{Numpad2}{Numpad5}{Numpad1}{Alt Up} |
|
|
| Back to top |
|
 |
purloinedheart
Joined: 04 Apr 2008 Posts: 537 Location: Canada
|
Posted: Sat Sep 05, 2009 6:30 pm Post subject: |
|
|
| Code: |
code = ASCII Code
#a::Send % Chr(Code)
|
|
|
| Back to top |
|
 |
closed
Joined: 07 Feb 2008 Posts: 509
|
Posted: Sat Sep 05, 2009 6:56 pm Post subject: |
|
|
as far as i know there is no ascii for square root only unicode
so the solution that works will be the one suggested by jaco0646 |
|
| Back to top |
|
 |
New Guy Guest
|
Posted: Sat Sep 05, 2009 8:01 pm Post subject: ascii |
|
|
Thanks for replies
Did you try them?
None work??? |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sat Sep 05, 2009 8:24 pm Post subject: |
|
|
It isn't "character 251". Look here for all "alt-codes" -> http://www.spike-jamie.com/alt-codes.html
then use the method suggested by jaco0646. None of the others probably work, since AHK isn't Unicode-compatible as such.
EDIT: That page doesn't (obviously) contain ALL the alt codes, but anyways.
"square root" (the character) is Unicode U+221A, so in "alt-notation" (also known as HTML Entity) you can get it with alt+8730.
EDIT2: More here: http://www.fileformat.info/tip/microsoft/enter_unicode.htm |
|
| Back to top |
|
 |
closed
Joined: 07 Feb 2008 Posts: 509
|
Posted: Sat Sep 05, 2009 8:37 pm Post subject: |
|
|
Sorry you are right it does not work in word! ( the jaco0646 alt numpad solution)
I do not have MS Word so i tested it in notepad there it works but when i tested it in wordpad it does not work.
You can get it with charmap maybe loading it in clipboard and saving clipboard will be a way around but it is to late to try it today............. |
|
| Back to top |
|
 |
New Guy Guest
|
Posted: Sat Sep 05, 2009 9:12 pm Post subject: Thanks |
|
|
That worked - thanks AnttiV
(and everyone else) |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sun Sep 06, 2009 3:01 am Post subject: Re: ascii |
|
|
| New Guy wrote: | Thanks for replies
Did you try them?
None work??? | Yep, my code works for me in MS Word 2003, just tested it again. I guess you must have 2007. Strange that it would not work there though. Oh well, at least an answer was found. |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sun Sep 06, 2009 11:25 am Post subject: |
|
|
Jaco, it probably doesn't have anything to do with office versions (unless one of them modifies a certain registry key and the other doesn't).
there's a registry setting to allow/disallow certain input methods (I don't know what alters the registry values, but its different on some machines) and on top of that, the codepage you're using affects the input too. But *most* windows versions allow input with alt-#### (with leading zeroes) in "HTML notation". |
|
| Back to top |
|
 |
closed
Joined: 07 Feb 2008 Posts: 509
|
Posted: Sun Sep 06, 2009 1:05 pm Post subject: |
|
|
thanks AnttiV for the info about the alt numpad input listing can be very usefull.
I tried it with winword for win95 ( the only version i can find here) and i cannot get it to work ,the results are different from the unicode list.Changing the registry did not work for this version. ( or i made a mistake...)
But there is an inbuild "symbol to hotkey" feature so it is quite easy to give the square root a custom hotkey. |
|
| Back to top |
|
 |
|