AutoHotkey Community

It is currently May 26th, 2012, 10:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: September 5th, 2009, 7:18 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 7:27 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Code:
#s::Send {Alt Down}{Numpad2}{Numpad5}{Numpad1}{Alt Up}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 7:30 pm 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
Code:
code = ASCII Code
#a::Send % Chr(Code)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 7:56 pm 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: ascii
PostPosted: September 5th, 2009, 9:01 pm 
Thanks for replies

Did you try them?

None work???


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 9:24 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 9:37 pm 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
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.............


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks
PostPosted: September 5th, 2009, 10:12 pm 
That worked - thanks AnttiV
(and everyone else)


Report this post
Top
  
Reply with quote  
 Post subject: Re: ascii
PostPosted: September 6th, 2009, 4:01 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2009, 12:25 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
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".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2009, 2:05 pm 
Offline

Joined: February 7th, 2008, 9:48 pm
Posts: 509
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, JSLover, Leef_me, Miguel, rbrtryn and 61 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group