如何在c#中不使用鼠标选择一些值 [英] how to select some values without using mouse in c#

查看:91
本文介绍了如何在c#中不使用鼠标选择一些值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要在不使用鼠标的情况下在记事本或任何其他窗口中选择一些值。使用C#代码获取x位置和y位置以选择特定值。请任何人帮我这个。



先谢谢,

谢谢,

Gok

Hi All,
I need to select some values in a notepad or any other window without using the mouse. Using the C# code to get x position and y position to select the particular values. Please any one help me on this.

Thanks in Advance,
Thanks,
Gok

推荐答案

你想要控制鼠标光标的ac #scrira?

如果是这样,请查看user32.dll中的一些函数



[DllImport(user32.dll)]

static extern void mouse_event(uint dwFlags,uint dx,uint dy,uint dwData,

UIntPtr dwExtraInfo);
You want a c# scrip that controls the mouse cursor?
If so look in the some functions from the user32.dll

[DllImport("user32.dll")]
static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData,
UIntPtr dwExtraInfo);


这篇关于如何在c#中不使用鼠标选择一些值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆