identifying a MSWord font to allot specific symbols to usual keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

identifying a MSWord font to allot specific symbols to usual keys

09 Aug 2017, 16:21

is there a way to identify a specific "Font" at MS Word 2016, in order to allocate keys to that specific keyboard?

Say you use SBL Greek Font in MS Word. When you press "a" the (usual) Latin "a" is given. Well I would like that when I'm using that SBL Greek Font when I type "a" the letter given is the Greek "a", the alpha
Vh_
Posts: 203
Joined: 17 Mar 2017, 22:06

Re: identifying a MSWord font to allot specific symbols to usual keys

09 Aug 2017, 20:29

Set word as an object. Give this a short try. (dont know why short was there..) Font context hotkeys, I'd reccomend it cross referencing to another script to run. Give this a try.

Code: Select all

Word := ComObjActive("Word.Application")

;Word.Visible := true 

;Msgbox, % IsObject(Word) ;to test if Word is an object, uncomment.

Var := Word.Selection.Font.Name ;Set what you want to test as a variable

Msgbox, % Var ;Find out what the font is, stored in the variable

If (Var = "Arial Black") ;These are just example font I chose.
{
	Msgbox, do X
}
Else If (var = "Calibri") ;this was the default.
{
	Msgbox, do Y
}
return
good luck!
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: identifying a MSWord font to allot specific symbols to usual keys

10 Aug 2017, 19:30

thank you.
I think it works. However how can I set up that the script is constantly changing IF MS Word is open and also If I right now I'm using "Arial Black" so that if that is the case I want to make a change in the symbols (scancode, that one symbol will be at a specific key)
TimeHorizon
Posts: 13
Joined: 02 Aug 2017, 17:59

Re: identifying a MSWord font to allot specific symbols to usual keys

12 Aug 2017, 19:30

I guess put it in a loop, that would be my idea. :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 291 guests