private static void MouseFunction(uint flag) { Structs.INPUT ıNPUT = default(Structs.INPUT); ıNPUT.Type = 0u; ıNPUT.Data.Mouse.Flags = flag; WinAPI.SendInput(1u, ref ıNPUT, Marshal.SizeOf(default(Structs.INPUT))); }