Jump to content
Tuts 4 You

Copy Field To Clipboard


Guest StUd

Recommended Posts

Posted (edited)

How i can copy the serial field to clipboard?

i don't know what is function :teehee:

the code is:

.data?
SerialBuffer 512 dup(?).code
if eax==IDC_COPY
invoke ???

Can you give me an example?

Edited by StUd
Posted (edited)
.elseif EAX==IDC_COPY
invoke SendDlgItemMessage,hWnd,IDC_SERIAL,EM_SETSEL,0,-1
invoke SendDlgItemMessage,hWnd,IDC_SERIAL,WM_COPY,0,0

In attachment Keygen Template by Goppit

keygen_template.rar

Edited by Vrane
  • 4 weeks later...
Posted

If you've got no usual window_textbox,

or if it's for a selfkeygen,

then you could go like this:

.data ?
nLen dd ?
hMem dd ?
pMem dd ?
.code
Copy_2_Clipboard:
invoke lstrlen, ADDR String_2_Copy
inc eax
mov nLen, eax
invoke OpenClipboard, 0
invoke GlobalAlloc, GHND, nLen
mov hMem, eax
invoke GlobalLock, eax
mov pMem, eax
lea esi, String_2_Copy
mov edi, eax
mov ecx, nLen
rep movsb
invoke EmptyClipboard
invoke GlobalUnlock, hMem
invoke SetClipboardData, CF_TEXT, hMem
invoke CloseClipboard

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...