how do i get data from the clipboard into a string?

invoke OpenClipboard,0
invoke GetClipboardData,CF_TEXT
mov hClipboard,eax
invoke SendMessage,hClipboard,WM_GETTEXT,255,addr szbuffer
invoke CloseClipboard

doesn't seem to work
Posted on 2001-12-16 03:23:18 by grv575
i don't know but just try,

call OpenClipboard,0
call GetClipboardData, CF_TEXT
mov hClipboard,eax
call GlobalLock, hClipboard
mov StringYouNeedPointer,eax
call GlobalUnlock,hClipboard
call CloseClipboard

i didn't try but hope it could work :)
Posted on 2001-12-16 05:46:17 by Bit7