Page 1 of 1

Ms word

Posted: 12 Feb 2017, 08:01
by asad41163
Hello guys
how open Microsoft word options dialog box from File menu?
thanks in advance

Re: Ms word

Posted: 12 Feb 2017, 12:25
by GS SAHU
alt+f+i

Re: Ms word

Posted: 12 Feb 2017, 13:54
by asad41163
Thank you very much,
but I mean: open "word options" menu by AHK Script.
Thanks in advance.

Re: Ms word

Posted: 13 Feb 2017, 11:11
by asad41163
Hello my friends
any help, please

Re: Ms word

Posted: 13 Feb 2017, 12:51
by GS SAHU
SetTitleMatchMode 2
WinActivate, Microsoft Word
send !fi

Re: Ms word

Posted: 13 Feb 2017, 20:19
by burque505
GS SAHU, that didn't work for me.

Re: Ms word

Posted: 13 Feb 2017, 21:01
by burque505
Probably overkill, but works here.
I'm an utter noob, and I had to use Pulover's Macro Creator to get it to work. I just basically stole it from there.
The key seems to be "WinActivate, Document1 - Word ahk_class OpusApp"
If I can get a shorter version running I'll post it.

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
DetectHiddenWindows On
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


Run, Winword
sleep, 1000
WinActivate, Document1 - Word ahk_class OpusApp
sleep, 1000
Send, {LAlt Down}
Sleep, 100
Send, {f}
Sleep, 100
Send, {LAlt Up}
Sleep, 100
Send, {t}
Return

Re: Ms word

Posted: 13 Feb 2017, 21:04
by burque505
MUCH shorter :)

Run, Winword
sleep, 1000
WinActivate, Document1 - Word ahk_class OpusApp
sleep, 1000
Send, !f
Sleep, 100
Send, {t}
Return

Re: Ms word

Posted: 14 Feb 2017, 02:29
by asad41163
thanks GS SAHU
thanks burque505
thanks for all