Exemple #1
0
 /// <summary>
 /// Handles the simulation of a given key sequence
 /// </summary>
 /// <param name="keylist"></param>
 private void HandleKeySequenceSimulation(List <string> keylist)
 {
     foreach (string key in keylist)
     {
         var subkeys = SimulatedKeyPressModel.GetKeyCodeFromString(key);
         SimulatedKeyPressModel.KeyPress(subkeys);
     }
 }
Exemple #2
0
 /// <summary>
 /// Sets the default values
 /// </summary>
 private void SetDefaultValues()
 {
     OptionTitle          = GenDefString.SimulateKeyPressSequenceTitle;
     KeyModel             = new SimulatedKeyPressModel();
     RightSideSequence    = GenDefString.KeyPressSequenceDefault;
     LeftSideSequence     = GenDefString.KeyPressSequenceDefault;
     rightSequenceKeyList = new List <string>();
     leftSequenceKeyList  = new List <string>();
     CoolDownTimer        = GenDefInt.DefaultCoolDownTime;
     coolDownTimerLeft    = new Stopwatch();
     coolDownTimerRight   = new Stopwatch();
 }