This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Creating new isolate and communicate with it | |
import 'dart:convert'; | |
import 'dart:isolate'; | |
import 'package:stream_transform/stream_transform.dart'; | |
void main() => Future<void>(() async { | |
final receivePort = ReceivePort(); | |
final stream = receivePort.asBroadcastStream(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:ffi' show Uint8, Uint8Pointer; | |
import 'package:ffi/ffi.dart' show calloc; // , malloc | |
import 'package:win32/win32.dart' | |
show GetKeyboardState, GetKeyState; // , GetAsyncKeyState; | |
import 'virtual_key_codes.dart'; | |
/// Key - Virtual Key codes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Enable or Disable a webcam. | |
.DESCRIPTION | |
Toggle the Status of a Webcam by disabling the PnPDevice. Useful for completely disabling an unneeded device | |
without physically disconnecting it. | |
Can also be used to output the current status of the provided webcam. | |
Webcam name is sourced from the -WebcamName parameter, trying the WEBCAM_NAME env var if no parameter used. |