dart_winapi 0.3.5 dart_winapi: ^0.3.5 copied to clipboard
Dart implementation of winapi using dart:ffi to call C++ apis.
import 'dart:ffi';
import 'package:dart_winapi/user32.dart';
import 'package:ffi/ffi.dart';
void main() {
var point = Point.allocate();
GetCursorPos(point: point);
point.x += 10;
SetCursorPosFromPoint(point: point);
MouseEvent(dwFlags: MOUSEEVENTF_LEFTDOWN);
MouseEvent(dwFlags: MOUSEEVENTF_LEFTUP);
free(point.addressOf);
}