
I have a "Key Control" in my project to provide shortcuts to numerous actions and scripts. Upon connection, I would like to give the "Key Control" focus so that I can control the robot from a BT keyboard without necessarily seeing the computer or using a mouse to select the control the first time.
I thought adding this line to my init script would do what I want:Code:
ControlCommand("Key Control",ShowControl)
but it displays an error in the debug window and doesn't perform the requested action:
"11/29/2014 11:13 AM - Error on line 1: Unknown Window Control Command: ShowControl"
Am I missing something? Is there another way to do this>
Alan
even though the documentation says that is only for the mobile interface.Code:
Alan
Alan
The easiest way i can think of to do this is to setup a mouse recorder that will click the mouse where the key control is on the screen when the project is loaded.
@Antron007 that happens since the arrow keys are automatically defined in a similar manner to run the forward(), reverse(), left(), right() commands that's why the key control would have the arrow keys working
I suspect autohotkey may be powerful enough to find the object and select it, but I am not sure it can then do a mouse click within it by relative vs absolute position. But that is a fairly minor nit. The fact that I have a solution is what counts.
Alan
(although the sample script created on first run still points to www.autohotkey.com when you hit Win+z so that can add to the confusion).
Alan