- 博客(0)
- 资源 (7)
- 收藏
- 关注
这是systemwatch使用的例子,两个进程操作一个文件
这是systemwa这是systemwatch使用的例子,两个进程操作一个文件tch使用的例子,两个进程操作一个文件。难得的例子
2016-04-07
win7 64 vs2010下无问题的easyhook源码,本人只在c#下使用,当初搞定费了不少功夫
win7 64 vs2010下无问题的easyhook源码,本人只在c#下使用,当初搞定费了不少功夫,特保存一下
2016-04-03
C#自动点击按钮
public int X;
public int Y;
}
public enum MouseEventFlags
{
Move = 0x0001,
LeftDown = 0x0002,
LeftUp = 0x0004,
RightDown = 0x0008,
RightUp = 0x0010,
MiddleDown = 0x0020,
MiddleUp = 0x0040,
Wheel = 0x0800,
Absolute = 0x8000
}
private void AutoClick(int x, int y)
{
POINT p = new POINT();
GetCursorPos(out p);
try
{
SetCursorPos(x, y);
mouse_event((int)(MouseEventFlags.LeftDown | MouseEventFlags.Absolute), 0, 0, 0, IntPtr.Zero);
mouse_event((int)(MouseEventFlags.LeftUp | MouseEventFlags.Absolute), 0, 0, 0, IntPtr.Zero);
}
finally
{
SetCursorPos(p.X, p.Y);
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Point p = this.button2.PointToScreen(button2.Location);
AutoClick(p.X , p.Y );
}
private void button2_MouseClick(object sender, MouseEventArgs e)
{
button2.Text = "哈哈,点击了!!!!!!!";
}
2013-12-05
msChart重量级实例.rar
frm2 new Form2 ;
frm2 Show ;
while frm2 IsHandleCreated
{
;
}
new Thread delegate
{
for int i 0; i <8000000; i i + 4
{
for int j 0; j < 4; j++
{
pts[j] new PointF float i + j float rand NextDouble 50 0 0 5 rand NextDouble ;
}
try
{
frm2 frm2AddPoint pts ;
}
catch
{
break;
}
Thread Sleep 500 ;
}
Invoke new invokeButtonHandle invokeButton ;">frm2 new Form2 ;
frm2 Show ;
while frm2 IsHandleCreated
{
;
}
new Thread delegate
{
for int i 0; i <8000000; i i + 4
{
for int j 0; j < [更多]
2013-11-29
mschart显示实时曲线.ra
这个用的人应较多 源码啊 以下为类的字段
private int width; 要生成曲线图的宽度
private int height; 要生成曲线图的高度
private int N 31; 取31个关键点
private int M 25; 每M个像素点取一个关键点
private Point[] pointList; 用来绘制曲线的关键点 依次将这些点连接起来即得到曲线
private Random random new Random ; 生成随机数
private Bitmap currentImage; 当前要绘制的图片
private Color backColor; 图片背景色
private Color foreColor; 图片前景色
<summary>">这个用的人应较多 源码啊 以下为类的字段
private int width; 要生成曲线图的宽度
private int height; 要生成曲线图的高度
private int N 31; 取31个关键点
private int M 25; 每M个像素点取一个关键点
[更多]
2013-11-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人