Skip to content

ClipboardMonitor written in Java + JNA for Windows 7. NOT working on XP. See README for more details.

Notifications You must be signed in to change notification settings

mateuszszulc/ClipboardMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is modified version of OSGi Clipboard Monitor for Java.

Original code available at: https://github.com/pke/clipboard.monitor.

Original article: http://philondev.blogspot.com/2010/02/osgi-clipboard-monitor-for-java-on.html

Works on Windows 7. Not tested on Linux. Not working on Windows XP, because function:

  	viewer = User32.INSTANCE.CreateWindowEx(0, "STATIC", "", 0, 0, 0, 0, 0, //$NON-NLS-1$ //$NON-NLS-2$
				null, 0, 0, null);

returns null, and GetLastError() function returns error code 1411 (ERROR_CLASS_DOES_NOT_EXIST 1411 (0x583). 
Most probably there is a need to register window class "STATIC" with RegisterClass or RegisterClassEx function 
before call function CreateWindowEx.

WindowsClipboardMonitorApp included in this project ilustrate how ClipboardMonitor can be used. 

About

ClipboardMonitor written in Java + JNA for Windows 7. NOT working on XP. See README for more details.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages