I have a VB App running on PC-A and another VB App running on PC-B.

PC-A and PC-B are connected via an Ethernet Hub (LAN).

I am trying to figure out how (if possible) to press a command button on
the VB App running on PC-B with the VB App running on PC-A via SendKeys and
the LAN.

Here is the code I tried on the VB App in A to press the command button on
the VB App on PC-B. (This does not work).

AppActivate ("\\PC-B\VBAppOnB"), False
SendKeys "%{S}"


The following code works fine when both Apps are running on the same PC (PC-B).

AppActivate ("VBAppOnB"), False
SendKeys "%{S}"

Is there a better way than SendKeys? Any suggestions are greatly appreciated.

Thanks,
Kevin