本文整理匯總了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);
}