void loadData(m_Then t) { t.type = TheMapData.then_type_Key; if (radio2.IsChecked.Value) { t.key0 = comboKey2.SelectedValue.ToString(); } else { t.key0 = comboKey.SelectedValue.ToString(); } t.key = TheKeySender.getKey(t.key0); t.press = getKeytype(); }
void output_processOutput() { try { foreach (m_Then o in outputs) { if (o.type == TheMapData.then_type_Key) { if (o.press == TheMapData.then_key_press) { TheKeySender.KeyPress(uki.getKey_checkReplacment(o)); } else if (o.press == TheMapData.then_key_up) { InputManager.Keyboard.KeyUp(uki.getKey_checkReplacment(o)); } else if (o.press == TheMapData.then_key_holdEoM || o.press == TheMapData.then_key_hold) { InputManager.Keyboard.KeyDown(uki.getKey_checkReplacment(o)); } } else if (o.type == TheMapData.then_type_Mouse) { TheSys.showError("Mouse Click event is temporary unavailable"); } else if (o.type == TheMapData.then_type_ReplaceKey) { uki.listReplace_update(o); } else if (o.type == TheMapData.then_type_Variable) { uki.map_processSubOutput_Variable(o); } else if (o.type == TheMapData.then_type_Icon) { uki.prepareIcon(o.v, o.brush, o.value_d_1000); } else if (o.type == TheMapData.then_type_TimeWait) { Thread.Sleep(o.value_d_1000); } } } catch { } output_thread_running = false; }
private void comboKey2_SelectionChanged(object sender, SelectionChangedEventArgs e) { txtDef.Content = TheKeySender.getKeyDef(comboKey2.SelectedValue.ToString()); }