當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。