• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 模拟  键盘  鼠标  C#  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
//Download by http://www.codefans.net
namespace SendKeys_Demo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }
        //输入字母
        private void button1_Click(object sender EventArgs e)
        {
            this.richTextBox1.Focus(); //首先获取文本的焦点
            for (int i = 65; i < 91; i++)
            {
                char ch = (char)i; //类型转换
                SendKeys.Send(ch.ToString()); //向活动应用程序发送击键
              

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-09-15 07:27  SendKeys实例(模拟键盘输入)\
     目录           0  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\
     文件         929  2016-09-15 07:26  SendKeys实例(模拟键盘输入)\SendKeys_Demo.sln
     文件       14336  2010-05-24 14:17  SendKeys实例(模拟键盘输入)\SendKeys_Demo.suo
     文件       14336  2010-05-24 14:17  SendKeys实例(模拟键盘输入)\SendKeys_Demo.v12.suo
     目录           0  2016-09-15 07:27  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\
     目录           0  2016-09-15 07:29  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\Debug\
     文件       10240  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\Debug\SendKeys_Demo.exe
     文件       28160  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\Debug\SendKeys_Demo.pdb
     文件       21656  2016-09-15 07:35  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\Debug\SendKeys_Demo.vshost.exe
     文件         490  2012-06-02 22:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\bin\Debug\SendKeys_Demo.vshost.exe.manifest
     文件        6111  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Form1.cs
     文件        4545  2010-05-23 15:57  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Form1.Designer.cs
     文件        5814  2010-05-23 15:57  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Form1.resx
     目录           0  2016-09-15 07:27  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\
     目录           0  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\
     文件        6307  2016-09-15 07:27  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        1370  2016-09-15 07:35  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.csproj.FileListAbsolute.txt
     文件         847  2016-09-15 07:29  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.csproj.GenerateResource.Cache
     文件        1341  2016-09-15 07:29  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.csprojResolveAssemblyReference.cache
     文件       10240  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.exe
     文件         180  2016-09-15 07:29  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.Form1.resources
     文件       28160  2016-09-15 07:34  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.pdb
     文件         180  2016-09-15 07:29  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\SendKeys_Demo.Properties.Resources.resources
     目录           0  2016-09-15 07:27  SendKeys实例(模拟键盘输入)\SendKeys_Demo\obj\Debug\TempPE\
     文件         474  2010-05-08 19:05  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Program.cs
     目录           0  2012-11-29 11:58  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Properties\
     文件        1358  2010-05-08 19:05  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Properties\AssemblyInfo.cs
     文件        2876  2010-05-08 19:05  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Properties\Resources.Designer.cs
     文件        5612  2010-05-08 19:05  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Properties\Resources.resx
     文件        1098  2010-05-08 19:05  SendKeys实例(模拟键盘输入)\SendKeys_Demo\Properties\Settings.Designer.cs
............此处省略2个文件信息

评论

共有 条评论