上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 69 下一页

2019年1月18日

摘要: 实现效果: 知识运用: AIP函数GetKeyState //针对已处理过的按键 在最近一次输入信息时 判断指定虚拟键的状态 intkey:预测试的虚拟键键码 实现代码: 阅读全文

posted @ 2019-01-18 22:06 努力成长静待花开 阅读(1563) 评论(0) 推荐(0)

摘要: 实现效果: 应用场景: 在C#中判断某键是否被锁定 需用到虚拟键键码 上图为 [Caps Lock] 阅读全文

posted @ 2019-01-18 21:41 努力成长静待花开 阅读(125) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: KeyEventArgs类的KeyCode属性 实现代码: 阅读全文

posted @ 2019-01-18 21:09 努力成长静待花开 阅读(102) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: KeyEventArgs类的KeyCode属性 //用来为KeyDown或KeyUp事件提供数据 public Keys KeyCode { get; } //其KeyCode属性用来获取KeyDown或KeyUp事件的键代码 实现代码: 阅读全文

posted @ 2019-01-18 20:57 努力成长静待花开 阅读(124) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: API函数mouse_event //模拟鼠标的事件 [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] public extern static IntPtr mouse_even 阅读全文

posted @ 2019-01-18 20:29 努力成长静待花开 阅读(329) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: Graphics类的DrawLine方法和MouseEventArgs类的x,y属性 实现代码: 阅读全文

posted @ 2019-01-18 18:43 努力成长静待花开 阅读(514) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: TextBox控件的DoDragDrop方法 //用来开始拖放操作 public DragDropEffects DoDragDrop (Object data,DragDropEffects allowedEffects) DataObject类的GetData方法 pub 阅读全文

posted @ 2019-01-18 17:56 努力成长静待花开 阅读(621) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: SendKeys类的Send方法 //向活动应用程序发送击键 public static void Send (string keys) 实现代码: 阅读全文

posted @ 2019-01-18 13:44 努力成长静待花开 阅读(176) 评论(0) 推荐(0)

2019年1月17日

摘要: 实现效果: 知识运用: API函数ShowCursor //控制鼠标指针的可视性 实现代码: 阅读全文

posted @ 2019-01-17 22:42 努力成长静待花开 阅读(381) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: Cursor类中的相关属性 实现代码: 阅读全文

posted @ 2019-01-17 21:31 努力成长静待花开 阅读(299) 评论(0) 推荐(0)

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 69 下一页