I use the following program to have access to the Menus of the notepad ((Bloc-notes in french).
Code: Select all
SetTitleMatchMode, 2
!a::
PostMessage, 0x0111, 33, 0, , Bloc-notes
I try to make the same with Excel (by changing the number 51 by other numbers) - but in this case nothing happen:
Code: Select all
SetTitleMatchMode, 2
!a::
PostMessage, 0x0111, 51, 0, , "ahk_class XLMAIN"
Thank you very much in advance for your help,
Best regards,
Nicolas.[/b]