当前位置: 首页>>代码示例>>C#>>正文


C# ActionListener.ActionPerformed方法代码示例

本文整理汇总了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());
 }
开发者ID:hsteinhilber,项目名称:white-project,代码行数:7,代码来源:TooltipSafeMouse.cs

示例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);
        }
开发者ID:EricBlack,项目名称:White,代码行数:21,代码来源:Keyboard.cs

示例3: ActionPerformed

 private static void ActionPerformed(ActionListener actionListener)
 {
     actionListener.ActionPerformed(new Action(ActionType.WindowMessage));
 }
开发者ID:tmandersson,项目名称:FastGTD,代码行数:4,代码来源:Mouse.cs

示例4: RightClickHere

 internal virtual void RightClickHere(ActionListener actionListener)
 {
     RightClick();
     actionListener.ActionPerformed(Action.WindowMessage);
 }
开发者ID:tmandersson,项目名称:FastGTD,代码行数:5,代码来源:Mouse.cs

示例5: LeaveKey

 public virtual void LeaveKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyUp((short) key, true);
     heldKeys.Remove(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
开发者ID:hsteinhilber,项目名称:white-project,代码行数:6,代码来源:Keyboard.cs

示例6: HoldKey

 internal virtual void HoldKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     SendKeyDown((short) key, true);
     heldKeys.Add(key);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
开发者ID:hsteinhilber,项目名称:white-project,代码行数:6,代码来源:Keyboard.cs

示例7: PressSpecialKey

 public virtual void PressSpecialKey(KeyboardInput.SpecialKeys key, ActionListener actionListener)
 {
     Send(key, true);
     actionListener.ActionPerformed(Action.WindowMessage);
 }
开发者ID:hsteinhilber,项目名称:white-project,代码行数:5,代码来源:Keyboard.cs


注:本文中的ActionListener.ActionPerformed方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。