WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: weissenb on April 08, 2019, 09:53:18 AM

Title: WinActivate of Word (Office 365) using partial name
Post by: weissenb on April 08, 2019, 09:53:18 AM
Hello!
Using notepad it is easy to determine the partial-name as shown in the tutorial. But using current MS Office it is difficult as it appears no "word". There is "Save", name of the file, where is it stored etc.
I do not find any working partial name to activate the window.

Thanks for any help!

Best Regards, Christian
Title: Re: WinActivate of Word (Office 365) using partial name
Post by: td on April 08, 2019, 10:38:02 AM
Don't know which version of Office you are using but generally, the partial window name '~Word~' works for MS Word.  If it doesn't, it's time for a little self-help.   

You can find the analysis.wbt script in your WinBatch samples directory.  You can use it to identify the title for Word on your system. Just make sure you specify that the script show hidden and iconized windows.  Alternatively, you can use the Roboscripter tool provided with your WinBatch installation to query for the title making sure you place the crosshairs over the client area of the Word window to get the title.
Title: Re: WinActivate of Word (Office 365) using partial name
Post by: weissenb on April 08, 2019, 11:37:50 AM
I have Office 365 (always the newest version).
Thanks, it worked! :-)
Title: Re: WinActivate of Word (Office 365) using partial name
Post by: td on April 08, 2019, 12:19:05 PM
Office 360 isn't necessarily always at the newest version of Office 360.