I have the following need:
I am using LibreOffice, and I need to differentiate its function "Writer" (equivalent to Word) of "Impress" (PowerPoint)
I need the following script to work:
Code: Select all
F11 ::
IfWinExist, ahk_class SALFRAME ("Writer")
WinActivate
Return
F12 ::
IfWinExist, ahk_class SALFRAME ("Impress")
WinActivate
Return
And while both programs have their own "exe", I tried the following and it does not work.
Code: Select all
F11 ::
IfWinExist ahk_exe swriter.exe
Winactivate
F12 ::
IfWinExist ahk_exe simpress.exe
Winactivate
How could I make this work?