Options.DefaultHighlightColorIndex = wdYellow Selection.Range.HighlightColorIndex = wdYellow
How to translate this in AHK? I tried something like this, but it doesn't work...
wdYellow := 7 ; http://msdn.microsoft.com/en-us/library/bb237561.aspx COM_Init() Word:=COM_GetActiveObject("Word.Application") HighlightColor := COM_Invoke(Word,"Options.DefaultHighlightColorIndex",wdYellow) COM_Invoke(Word,"Selection.Range.HighlightColorIndex",HighlightColor) COM_Release(Word) COM_Term()Thanks in advance.