📄 souris.cs
字号:
namespace WoWBot
{
using System;
using System.Runtime.InteropServices;
public class Souris
{
private const int b = 8;
private const int b = 0x10;
private const int b = 2;
private const int b = 4;
public static object LeftClick()
{
LeftDown();
LeftUp();
return 0;
}
public static object LeftDown()
{
mouse_event(2L, 0L, 0L, 0L, 0L);
return 0;
}
public static object LeftUp()
{
mouse_event(4L, 0L, 0L, 0L, 0L);
return 0;
}
[DllImport("user32")]
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo);
public static object RightClick()
{
RightDown();
RightUp();
return 0;
}
public static object RightDown()
{
mouse_event(8L, 0L, 0L, 0L, 0L);
return 0;
}
public static object RightUp()
{
mouse_event(0x10L, 0L, 0L, 0L, 0L);
return 0;
}
[DllImport("user32")]
public static extern int SetCursorPos(int x, int y);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -