本文整理汇总了C#中ActionListener.ActionPerformed方法的典型用法代码示例。如果您正苦于以下问题:C# ActionListener.ActionPerformed方法的具体用法?C# ActionListener.ActionPerformed怎么用?C# ActionListener.ActionPerformed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionListener
的用法示例。
在下文中一共展示了ActionListener.ActionPerformed方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetToolTip
private ToolTip GetToolTip(UIItem uiItem, ActionListener actionListener)
{
mouse.Click(uiItem.Bounds.Center());
actionListener.ActionPerformed(Action.WindowMessage);
Thread.Sleep(CoreAppXmlConfiguration.Instance.TooltipWaitTime);
return ToolTip.GetFrom(uiItem.Bounds.Center());
}
示例2: Send
public virtual void Send(string keysToType, ActionListener actionListener)
{
if (heldKeys.Count > 0) keysToType = keysToType.ToLower();
CapsLockOn = false;
foreach (char c in keysToType)
{
short key = VkKeyScan(c);
if (c.Equals('\r')) continue;
if (ShiftKeyIsNeeded(key)) SendKeyDown((short) KeyboardInput.SpecialKeys.SHIFT, false);
if (CtrlKeyIsNeeded(key)) SendKeyDown((short) KeyboardInput.SpecialKeys.CONTROL, false);
if (AltKeyIsNeeded(key)) SendKeyDown((short) KeyboardInput.SpecialKeys.ALT, false);
Press(key, false);
if (ShiftKeyIsNeeded(key)) SendKeyUp((short) KeyboardInput.SpecialKeys.SHIFT, false);
if (CtrlKeyIsNeeded(key)) SendKeyUp((short) KeyboardInput.SpecialKeys.CONTROL, false);
if (AltKeyIsNeeded(key)) SendKeyUp((short) KeyboardInput.SpecialKeys.ALT, false);
}
actionListener.ActionPerformed(Action.WindowMessage);
}
示例3: ActionPerformed
private static void ActionPerformed(ActionListener actionListener)
{
actionListener.ActionPerformed(new Action(ActionType.WindowMessage));
}
示例4: RightClickHere
internal virtual void RightClickHere(ActionListener actionListener)
{
RightClick();
actionListener.ActionPerformed(Action.WindowMessage);
}
示例5: LeaveKey
public virtual void LeaveKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
{
SendKeyUp((short) key, true);
heldKeys.Remove(key);
actionListener.ActionPerformed(Action.WindowMessage);
}
示例6: HoldKey
internal virtual void HoldKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
{
SendKeyDown((short) key, true);
heldKeys.Add(key);
actionListener.ActionPerformed(Action.WindowMessage);
}
示例7: PressSpecialKey
public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
{
Send(key, true);
actionListener.ActionPerformed(Action.WindowMessage);
}