AHK can not send combination hotkey to the standalone viewer window

I test that when using AHK to send some hotkeys to the standalone viewer window,

f8::send "{f2}"
1::send "{f2}"
a::send "{f2}"
^=::send "{f2}"
^d::send "{f2}"
!d::send "{f2}"
+d::send "{f2}"
#s::send "{f2}"

Only the single hotkeys will respond correctly.
such as F8, 1, A.
the other combination hotkeys are not responding (ctrl+D, shift+D,win+S, etc.)
Why is it that? :joy:

Is this a question about AHK or Opus?

If pushing the keys on your keyboard works, but your AHK script doesn't, then the problem can't be on the Opus side.

The viewer also lets you change most of its hotkeys directly, without complicating things by remapping them in an external program.

it is a problem about DOpus standalone viewer.

^d::send "{f2}"
Using AHK to send F2 (by pressing ctrl+D) to the lister window, will respond to " Rename INLINE".
but pressing "ctrl+D" to send F2 to the standalone viewer window, nothing will happen.

If F2 is activating inline rename then it sounds like you're sending the keypress to the wrong window.

F2 is just an example.
Not only F2, but also other shortcut keys cannot respond to the keys sent by AHK.

I set shortcut "Ctrl+W" and "ESC" for "Show VIEWERCMD=close" in the standalone viewer,
then
^d::sendinput "^w" not work
^d::SendEvent "^w" work
^d::send "{esc}" work

this code also work
^d::
{
keyWait "Ctrl", "L"
send "{f2}"
}

so the problem lies in the way the standalone viewer window handles shortcut key responses.

But if sending F2 triggered inline rename in the Lister that means the key press was sent to the Lister, not the viewer.

no no no.

when the Lister is active window,ahk can send {F2} to the lister window. no problem.
when the standalone viewer is active window, ahk can not send F2 to it.this is the issue.

Does pushing F2 on the keyboard work? Assuming it does, you know that F2 being sent to the window works. If the AHK script isn’t triggering the same thing, it must be doing something else, or sending the keypress to the wrong window or child window.

the window is right.
the problem is the standalone viewer window frame.
we can't send ANY key by combination keys (press multi keys).
we can only send key by pressing single key to its window.

we can use "sendevent" to send combination hotkey successfully,but not "sendinput".
think the difference between "sendinput" and "sendevent".

Another example:

"Shift+W" is bound to this buttonW:

@enableif:enabled Show VIEWERCMD=backcol
@toggle:if Show VIEWERCMD=backcol,#ffffff
@if:Show VIEWERCMD=backcol,#ffffff
Show VIEWERCMD=backcol
@if:else
Show VIEWERCMD=backcol,#ffffff

and "Ctrl+W" is bound to this buttonC:

Show VIEWERCMD=close

AHK code:

+1::SendInput "^w"

Now I press Shift+1, the result is: buttonW will be triggered rather than buttonC.

In the standalone viewer window, I must use SendEvent instead of SendInput .

+1::SendEvent "^w"

but in the lister window, I can use Send / SendInput (both work correctly).