Coder Social home page Coder Social logo

geomatics-io / dapplo.windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dapplo/dapplo.windows

0.0 2.0 0.0 1.16 MB

A dapplo building block for querying and modifying native windows

License: GNU Lesser General Public License v3.0

C# 99.47% PowerShell 0.53%

dapplo.windows's Introduction

Dapplo.Windows

This project contains code which adds Microsoft Windows specific functionality to your application

THIS IS WORK IN PROGRESS!

  • Documentation can be found here
  • Current build status: Build status
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package
  • NuGet package: NuGet package

This is actually code I wrote for Greenshot, and with this I am trying to place it into an external repository so it's easier to maintain.

The following functionality is available:

  • Hooking windows events (window moved, changed title etc), mouse & Keyboard
  • Generating key presses or mouse input
  • Getting the title, location etc of windows
  • GDI / User 32 native method mapping
  • A lot of the native structs and enums ... more

Dapplo.Windows.Messages

Has all the Windows Messages defined for some of the projects in the solution, so if someone uses part of the functionality not everything is included.

Dapplo.Windows.Citrix

A library to add Citrix-Awareness to your application

if (WinFrame.IsAvailble) {
	// Citrix specific code here
	var clientHostname = WinFrame.QuerySessionInformation(InfoClasses.ClientName);
}

Dapplo.Windows.Clipboard

In Dapplo.Clipboard specialized code for using the Windows clipboard is place. This is currently being developed and far from ready, it should provide a flexible and fluent API to use the Clipboard. Currently there is already a simplified monitor, using System.Reactive, build in which allows you to subscribe to changes:

	var clipboardSubscription = ClipboardMonitor.OnUpdate.SubscribeOn( < ui SynchronizationContext> ).Where(args => args.Formats.Contains("MyFormat")).Subscribe(args =>
	{
		Debug.WriteLine("Detected my format between these possible formats: {0}", string.Join(",", args.Formats));
	});

This allows you to create simple code which calls you logic if the needed format is available, dispose the subscription when you are ready.

API: ClipboardMonitor should publish a ClipboardContents object for every clipboard event. The ClipboardContents object will get the formats and content at the first moment these are accessed. Need a way to specify the OpenClipboard / CloseClipboard at the rights moments.

GetClipboardData should be used to get the contents, they should be converted to MemoryStreams? The information is stored/maintained, until the ClipboardContents object is disposed? This could be as soon as the next information is placed on the clipboard.

Dapplo.Windows.Dpi

A library to add Dpi-Awareness to your application

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.