Skip to content

A powerful screen capturer and Keyboard/mouse input simulator(Support Windows UAC\Winlogon\DirectShowOverlay)./Windows 高级桌面截图和输入控制工具,支持UAC、Winlogon、DirectShowOverlay窗口。

License

Notifications You must be signed in to change notification settings

popboy100/WinRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

About WinRobot

![Gitter](https://badges.gitter.im/Join Chat.svg)GitHub license

  • A powerful & high performance screen capturer and Keyboard/mouse input simulator(Support Windows UAC\Winlogon\DirectShowOverlay).
  • (Optional)An implementation of java.awt.Robot under windows

User Manual

Compiling from source on Windows

About the files:

WinRobot\JNI The c++ part of the project WinRobot\Java The java part of the project 
  • Build C++ part: Add/adjust the following environment variables (via Control Panel/System/Advanced/Environment Variables):set JDKDIR to the path of jdk include,for example "c:\Program Files\Java\jdk1.6.0_22\include" The c++ part files are provided for Visual Studio 2010 sp1.The next step is to open "WinRobot\JNI\WinRobot.sln" and build the solution.The output directory is "WinRobot\bin\debug" and "WinRobot\bin\release".If all succeed,the following targets will be created:WinRobotHost.exe,JNIAdapter.dll,WinRobotCore.dll,WinRobotHook.dll,WinRobotHostPS.dll.

    About the output files:

     JNIAdapter*.dll WinRobot JNI library,load by JAVA part. WinRobotCore*.dll COM component:WinRobotService and WinRobotSession. WinRobotHook*.dll Provide API hook ability,used to hook DirectDraw Overlay API. WinRobotHost*.exe the service executable file. WinRobotHostPS*.dll Proxy dll for WinRobotHost*.exe,needed by ATL service. 
  • Build java part: make sure you have install Java sdk 1.6+. Use NetBeans to open the project("WinRobot\java\WinRobot").Copy c++ output files(WinRobotHost*.exe,JNIAdapter*.dll,WinRobotCore*.dll,WinRobotHook*.dll,WinRobotHostPS*.dll) to WinRobot\Java\WinRobot\build\classes, to package them to the WinRobot.jar,

Install

For Win32:

WinRobotHostx32.exe -I 

For Win64:

WinRobotHostx64.exe -I 

How to use

C++

#ifdef _WIN64 #import"WinRobotCorex64.dll" raw_interfaces_only, raw_native_types,auto_search,no_namespace #import"WinRobotHostx64.exe" auto_search,no_namespace #else #import"WinRobotCorex86.dll" raw_interfaces_only, raw_native_types,auto_search,no_namespace #import"WinRobotHostx86.exe" auto_search,no_namespace #endif CComPtr<IWinRobotService> pService; hr = pService.CoCreateInstance(__uuidof(ServiceHost) ); //get active console session CComPtr<IUnknown> pUnk; hr = pService->GetActiveConsoleSession(&pUnk); CComQIPtr<IWinRobotSession> pSession = pUnk; // capture screen pUnk = 0; hr = pSession->CreateScreenCapture(0,0,1024,768,&pUnk); // get screen image data(with file mapping) CComQIPtr<IScreenBufferStream> pBuffer = pUnk; CComBSTR name; ULONG size = 0; pBuffer->get_FileMappingName(&name); pBuffer->get_Size(&size); CFileMapping fm; fm.Open(name,size,false); // do something with fm...// get screen image data(with stream read) CComQIPtr<ISequentialStream> pStream = pUnk; char buf[1024]; ULONG cbBuffer = 0 ; while (pStream->Read(buf,sizeof(buf),&cbBuffer) == S_OK ){// do something }

JAVA

importcom.caoym.WinRobot; //...WinRobotrobot; BufferedImagescreen = robot.createScreenCapture(newRectangle(0, 0, 1024, 768));

About

A powerful screen capturer and Keyboard/mouse input simulator(Support Windows UAC\Winlogon\DirectShowOverlay)./Windows 高级桌面截图和输入控制工具,支持UAC、Winlogon、DirectShowOverlay窗口。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++65.5%
  • C21.9%
  • Java11.2%
  • Objective-C1.3%
  • Batchfile0.1%