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

资源简介


C#通过winAPI移动鼠标获取句柄,在其可以获取标题的地方可以修改其他软件的标题

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        [DllImport(“user32.dll“)]       
        public static extern int GetCursorPos(ref Point lpPoint);  //获取鼠标坐标,该坐标是光标所在的屏幕坐标位置
        [DllImport(“user32.dll“)]        
        public static extern int WindowFromPoint(int xPointint yPoint);  //指定坐标处窗体句柄
        [DllImport(“user32.dll“)]
        public static extern int GetWindowText(int hwnd StringBuilder lpString int nMaxCount);//获取窗体标题名称
        [DllImport(“user32.dll“)]      
        public static extern int GetClassName(int hwndStringBuilder lpstringint nMaxCount); //获取窗体类名称      
        [DllImport(“user32.dll“ EntryPoint = “SendMessageA“)]
        public static extern int SendMessage(i

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

     文件      11264  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件      26112  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      11600  2018-06-08 15:04  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        490  2010-03-17 22:39  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       2899  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs

     文件       5471  2018-06-07 17:53  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs

     文件       5817  2018-06-07 17:53  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx

     文件       5420  2018-06-06 17:20  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6480  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1218  2018-06-08 15:04  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        975  2018-06-07 17:53  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件       9174  2018-06-06 17:21  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache

     文件      11264  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe

     文件        180  2018-06-07 17:53  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources

     文件      26112  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.pdb

     文件        180  2018-06-07 17:25  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        516  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs

     文件       1478  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2878  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx

     文件       1111  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs

     文件        249  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings

     文件       3707  2018-06-07 17:25  WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj

     文件        914  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1.sln

    ..A..H.     25600  2018-06-08 15:04  WindowsFormsApplication1\WindowsFormsApplication1.suo

     目录          0  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE

     目录          0  2018-06-07 19:06  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug

     目录          0  2018-06-07 18:58  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug

     目录          0  2018-05-29 16:57  WindowsFormsApplication1\WindowsFormsApplication1\bin\Release

     目录          0  2018-05-29 16:54  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86

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

评论

共有 条评论