﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1028	_ClipBoard_GetData does not work properly	Ascend4nt	Jpm	"In working with _ClipBoard_GetData() and looking at the code (in Clipboard.au3), I've noticed some major flaws with it (AutoIT version 3.3.0.0):
1. Unicode text will not be returned (at all)
2. An arbitrary limit is placed on the ANSI/OEM text to be returned (8192 chars)
3. The Clipboard is closed before the data is transferred. (From the source code I've reviewed, this is not good form)
4. The Global memory isn't locked for anything but ANSI/OEM text
5. Returning any other data types then the 3 it handles will result in a Global memory handle being returned (*not* locked)

With my code, I went ahead and fixed all of the above, and used the _MemMoveMemory() function to transfer memory to an AutoIT structure for only the 'unknown' data types. (The rest can be obtained quite easily).

Also: one enhancement: The size of the data is returned in @extended, and is in chars for CF_TEXT, CF_OEMTEXT, and CF_UNICODETEXT, or in bytes for any other data type.

I don't know the method for submitting the fixed code or extra documentation (regarding @extended), so please let me know what else I should do.

Fixed code is attached."	Bug	closed	3.3.1.2	AutoIt	3.3.0.0	None	Fixed		
