private void OnAutoType(object sender, AutoTypeEventArgs autoTypeEventArgs) { // Detach event, we are only interested in a single invocation. AutoType.FilterCompilePre -= OnAutoType; mAutoTypeSuccessful = true; }
private void AutoType_FilterCompilePre(object sender, AutoTypeEventArgs e) { /* This is only required if the Auto-Type Entry Selection window is NOT shown * If the window is shown, the auto-type sequences are already adjusted */ e.Sequence = AdjustSequence(e.Sequence, true); }
private void AutoType_FilterSendPre(object sender, AutoTypeEventArgs e) { if (!string.IsNullOrEmpty(this.CurrentPlaceholderResolved) && e.Entry.GetAutoTypeSequence().Contains(this.CurrentPlaceholderResolved)) { e.Entry.AutoType.DefaultSequence = e.Entry.AutoType.DefaultSequence.Replace(this.CurrentPlaceholderResolved, PLACEHOLDER); } }
private void FilterCompilePre(object sender, AutoTypeEventArgs e) { if (MySequence != "") { e.Sequence = MySequence; } MySequence = ""; }
private void OnAutoTypeFilterCompilePre(object sender, AutoTypeEventArgs autoTypeEventArgs) { Regex replacer = new Regex(Regex.Escape(mPlaceholder), RegexOptions.IgnoreCase); autoTypeEventArgs.Sequence = replacer.Replace(autoTypeEventArgs.Sequence, match => { var clip = ClipboardUtil.GetText(); return(BracketReplace(clip)); }); }
public void Visit(object sender, AutoTypeEventArgs e) { if (_sequenceParts != null) { return; } _sequenceParts = SequencePart.Create(e.Sequence); if (_sequenceParts.Length == 1) { _sequenceParts = null; return; } foreach (var sequencePart in _sequenceParts) { if (sequencePart.Message != null) { var dialogResult = MessageBox.Show(sequencePart.Message, _host.MainWindow.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); if (dialogResult == DialogResult.Cancel) { break; } } var success = AutoType.PerformIntoCurrentWindow(e.Entry, e.Database, sequencePart.Sequence); if (!success) { break; } } _sequenceParts = null; e.Sequence = string.Empty; }
private void OnAutoType(object sender, AutoTypeEventArgs autoTypeEventArgs) { switchInputLanguage(); }
private void HandleAutoTypeFilterCompilePre(object sender, AutoTypeEventArgs e) { _sequenceVisitor.Visit(sender, e); }