Controlando o windows like a boss com o Intel Perceptual SDK

Post on 19-Nov-2014

35 Views

Category:

Software

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Aprenda como controlar o Windows programaticamente com o Perceptual SDK, adicionando um controle natural e intuitivo a qualquer aplicação de sua máquina.

Transcript

André Carlucci

Controlando o Windows like a boss com o Intel RealSense SDK

André Carlucci

Controlando o Windows like a boss com o Intel Perceptual Computing SDK

Intel 3d Camera

30fps 720p Camera60fps IR 320x240Dual-array Mic

Intel Software Day 2013…

WPF App SignalR Javascript

WPF App SignalR Javascript

WPF App SignalRChrome Plugin

WPF App

Control Windows!

One app to rule them all!

SharpPerceptual

https://github.com/andrecarlucci/SharpPerceptual

Install-Package SharpPerceptual

SharpPerceptual

var cam = new Camera();cam.Start();cam.LeftHand.Visible += () => {

Console.WriteLine("Hello");}cam.RightHand.Moved += m => {

Console.WriteLine("-> x:{0} y:{1}", m.X, m.Y);}

SharpPerceptual

var gesture = new CustomGesture(camera.RightHand);gesture.AddMovement(Movement.Forward(10, 500));gesture.GestureDetected += () => {

Console.WriteLine("Punch!");}

DEMO! 2048

Windows API

Base Services

kernel32.dll

Advanced Services

advapi32.dll

Graphicswin32k.sys

User Interfaceuser32.dll

Common Dialog

comdlg32.dll

Common Control

commctrl.dll

Windows Shell

shell32.dll

Network Services

netapi32.dll

P/Invoke!

Marshaling service

managed unmanaged

P/Invoke!

1. Encontra a dll2. Carrega na memória (caso não esteja)3. Encontra o endereço da função e envia os

argumentos4. Trasfere o controle para função

P/Invoke!

[DllImport("user32.dll")]public static extern int SetCursorPos(int x, int y);

MrWindows

https://github.com/andrecarlucci/MrWindows

Install-Package MrWindows

MrWindows

var win = new Windows();win.Keyboard.TypeTogether(VirtualKey.Control,

VirtualKey.Alt, VirtualKey.Delete);

win.Mouse.MouseLeftClick();

DEMO!

The Lock Screen

Windows Credential Provider

• Customiza o logon no Windows• Entrou no lugar do GINA (Graphical

Identification and Authentication)• C++

pGina

http://pgina.org/

pGina Architecture

Mas e o Trello?

Perguntas?

André Carlucci@andrecarlucciwww.andrecarlucci.com

Próximas palestras

• 14:05 - Intel RealSense SDK  Felipe Pedroso 

• 14:55 - Utilizando o padrão MVVM em Universal Apps - Ricardo Dorta

• 16:10 - Tecnologia de Games 3D em Windows Fabrício Catae

Obrigado!

André Carlucci@andrecarlucciwww.andrecarlucci.com

top related