Exemplo n.º 1
0
 public async Task <bool> SendKey(Key key, PressKeyMode mode = PressKeyMode.SinglePress)
 {
     PackageHost.WriteInfo($"Sending key #{key.GetOrangeServiceId()} ({key.ToString()}) as {mode.ToString()}");
     return(await this.orangeBox.SendKey(key, mode).ContinueWith(taskAfterSTBAction));
 }
Exemplo n.º 2
0
 public bool SendKey(Key key, PressKeyMode mode = PressKeyMode.SinglePress)
 {
     PackageHost.WriteInfo($"Sending key #{key.GetOrangeServiceId()} ({key.ToString()}) as {mode.ToString()}");
     return(this.orangeBox.SendKey(key, mode).Result);
 }