Code: Select all
#WinActivateForce
F5::
WinActivate, Parsec
return
F6::
WinActivate, Moonlight
return
Code: Select all
#WinActivateForce
F5::
WinActivate, Parsec
return
F6::
WinActivate, Moonlight
return
Yes!Does F6 work from other windows?
Parsec has a few shortcuts which use modifiers, but none involving F5, or F6.If so, then does Parsec use its own keyboard shortcuts?
MoonlightIf not, then what does Window Spy show as your complete window title for Moonlight?
No, and NoDo results differ if you remove the initial directive? Do results differ if you do not run as admin?
Code: Select all
F3::MsgBox, Test
This is the entire script I am using to test.Is that the entire script?
Code: Select all
#SingleInstance Force
#WinActivateForce
F5::
WinActivate, Parsec
return
F6::
WinActivate, Moonlight
return
F7::
WinMinimize, A
return
F3::MsgBox, Test
F8::Winactivate, Ubisoft ; Ubisoft Connect window
F9::WinActivate, New ;Microsoft Edge window
NoAre any other scripts running at the same time?
NoAre there any other windows (e.g., an open Web browser page or document) also called "Moonlight"?
Apparently, but I don't know how to verify this. Alt Esc succeeds in sending it to the back.Does Parsec have on-top window status?
I can't use a hotkey in the script, but If I press Alt Esc, Parsec will go to the back, and I can then press F6 to activate Moonlight. I then to have to press Alt Esc in order for F5 to activate Parsec.Are you able to use a hotkey to minimize the Parsec window and then activate Moonlight?
Code: Select all
F6::
PostMessage, 0x0112, 0xF020,,, Parsec ; Alternatively: Send !{Esc}
WinActivate, Moonlight
Return
Neither PostMessage nor Send !{Esc} worked.Some ideas to try
Code: Select all
SetTitleMatchMode, 2
#IfWinActive Parsec ahk_class MTY_Window
^Capslock::
WinMinimize A
return
#IfWinActive
#IfWinNotActive Parsec ahk_class TscShellContainerClass
^Capslock::
WinActivate, Parsec
return
#IfWinNotActive
Code: Select all
#WinActivateForce
SetTitleMatchMode, 3
#IfWinActive Parsec ahk_class MTY_Window
^Capslock::
Sleep 50
WinMinimize A
return
#IfWinActive
#IfWinNotActive Parsec ahk_class TscShellContainerClass
^Capslock::
Sleep 50
WinActivate, Parsec
return
#IfWinNotActive