AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ascii code for "square root"

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
New Guy
Guest





PostPosted: Sat Sep 05, 2009 6:18 pm    Post subject: Ascii code for "square root" Reply with quote

Hi

I can make Microsoft Word draw alpha by pressing WinKey+a

Code:
#a::Send {asc 945}


All the stuff I read says that square root is character 251, so this should work (Winkey+s):

Code:
#s::Send {asc 251}

But it doesn't - anyone help me out?

Thanks
Back to top
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sat Sep 05, 2009 6:27 pm    Post subject: Reply with quote

Code:
#s::Send {Alt Down}{Numpad2}{Numpad5}{Numpad1}{Alt Up}
Back to top
View user's profile Send private message Visit poster's website
purloinedheart



Joined: 04 Apr 2008
Posts: 537
Location: Canada

PostPosted: Sat Sep 05, 2009 6:30 pm    Post subject: Reply with quote

Code:

code = ASCII Code
#a::Send % Chr(Code)
Back to top
View user's profile Send private message
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Sat Sep 05, 2009 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
New Guy
Guest





PostPosted: Sat Sep 05, 2009 8:01 pm    Post subject: ascii Reply with quote

Thanks for replies

Did you try them?

None work???
Back to top
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 05, 2009 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Sat Sep 05, 2009 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
New Guy
Guest





PostPosted: Sat Sep 05, 2009 9:12 pm    Post subject: Thanks Reply with quote

That worked - thanks AnttiV
(and everyone else)
Back to top
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sun Sep 06, 2009 3:01 am    Post subject: Re: ascii Reply with quote

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
View user's profile Send private message Visit poster's website
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sun Sep 06, 2009 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Sun Sep 06, 2009 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group