• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-25
  • 语言: C#
  • 标签: 鼠标  

资源简介

交换鼠标左右键功能

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ChangeRLKey
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        [System.Runtime.InteropServices.DllImport(“user32.dll“ EntryPoint = “SwapMouseButton“)]
        public extern static int SwapMouseButton(int bSwap);//重写API函数
        
        public void DefaultRightButton()
        {
            SwapMouseButton(1);//鼠标右键
        }
        
        public void DefaultLeftButton()
        {
            SwapMouseButton(0);//鼠标左键
        }
        
        private void btnChange_Click(object sender EventArgs e)
        {
            this.DefaultRightButton();//交换鼠标左右键
        }
        
        private void btnReset_Click(object sender EventArgs e)
        {
            this.DefaultLeftButton();

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8704  2016-12-22 03:37  ChangeRLKey\ChangeRLKey\bin\Debug\ChangeRLKey.exe

     文件      30208  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\bin\Debug\ChangeRLKey.pdb

     文件      14328  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\bin\Debug\ChangeRLKey.vshost.exe

     文件        490  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\bin\Debug\ChangeRLKey.vshost.exe.manifest

     文件       3991  2016-12-21 17:49  ChangeRLKey\ChangeRLKey\ChangeRLKey.csproj

     文件       1082  2016-12-21 17:49  ChangeRLKey\ChangeRLKey\Frm_Main.cs

     文件       2825  2016-12-21 17:49  ChangeRLKey\ChangeRLKey\Frm_Main.designer.cs

     文件       5814  2016-12-21 17:48  ChangeRLKey\ChangeRLKey\Frm_Main.resx

     文件       1961  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.csproj.FileListAbsolute.txt

     文件        908  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.csproj.GenerateResource.Cache

     文件       8704  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.exe

     文件        180  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.Frm_Main.resources

     文件      30208  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.pdb

     文件        180  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\ChangeRLKey.Properties.Resources.resources

     文件       7020  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2016-12-22 04:18  ChangeRLKey\ChangeRLKey\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        495  2016-12-21 17:48  ChangeRLKey\ChangeRLKey\Program.cs

     文件       1354  2016-12-21 21:17  ChangeRLKey\ChangeRLKey\Properties\AssemblyInfo.cs

     文件       2862  2016-12-21 21:17  ChangeRLKey\ChangeRLKey\Properties\Resources.Designer.cs

     文件       5612  2016-12-21 21:17  ChangeRLKey\ChangeRLKey\Properties\Resources.resx

     文件       1111  2016-12-21 21:17  ChangeRLKey\ChangeRLKey\Properties\Settings.Designer.cs

     文件        249  2016-12-21 21:17  ChangeRLKey\ChangeRLKey\Properties\Settings.settings

     文件        923  2016-12-21 16:09  ChangeRLKey\ChangeRLKey.sln

     目录          0  2016-12-22 04:18  ChangeRLKey\ChangeRLKey\obj\Debug\Refactor

     目录          0  2016-12-22 04:18  ChangeRLKey\ChangeRLKey\obj\Debug\TempPE

     目录          0  2016-12-22 03:37  ChangeRLKey\ChangeRLKey\bin\Debug

     目录          0  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\bin\Release

     目录          0  2016-12-22 04:18  ChangeRLKey\ChangeRLKey\obj\Debug

     目录          0  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\bin

     目录          0  2016-12-22 03:36  ChangeRLKey\ChangeRLKey\obj

............此处省略6个文件信息

评论

共有 条评论