I am fairly new to the autohotkey program but I love the functionality of it all. I am looking to create a hotkey to open a program (if it's not already open) but it's open to activate the window. I've tried the below but it doesn't seem to work.
^+e::
#IfWinExist, ahk_class XLMAIN ahk_exe EXCEL.EXE
{
WinActivate ahk_class XLMAIN ahk_exe EXCEL.EXE
}
return
#IfWinExist
#IfWinNotExist, ahk_class ahk_class XLMAIN ahk_exe EXCEL.EXE
{
run C:\Program Files\Microsoft Office\Office16\EXCEL.EXE
}
#IfWinNotExist
return
Also, could you confirm if mouse positions do not work on dual screen or windows 10?
Any help would be highly appreciated, thank you so much!