OK, after some further research, I have found working command:
control printers
It opens window Devices and Printers, containing not only Bluetooth devices, but all known devices. So content of the window is superset of content requested in the question, but the only difference is that filtering of Bluetooth devices is not applied this time. Typing name of the device moves selection focus to its item and nothing stands in way of running command from context menu of the device. The complete script for sample device MyPhone1
therefore is:
Run, control printers
WinWaitActive, Devices and Printers
Sleep, 500
Send MyPhone1{AppsKey}ca
And the AutoHotKey rules again. :)
Edit: Upon MCL's comment, ugly waiting loop was replaced by sleek WinWaitActive
. Thanks!
EDIT:
from command line:
devices and printers:
explorer shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}
bluetooth devices:
explorer shell:::{28803F59-3A75-4058-995F-4EE5503B023C}
other locations: