XR3X
Clicky

Jump to content


Photo

Get Clipboard data

help masm

  • You cannot start a new topic
  • Please log in to reply
2 replies to this topic

#1 nu3lC

nu3lC

    Member

  • Associate
  • Reputation: 16
    Fair
  • 63 posts
  • Locationhackhound

Posted 27 May 2013 - 06:10 AM

hey guys i got a problem today.i dont know how to fix this.please help me

 

 Clip dword ?

 

invoke OpenClipboard,NULL
invoke GetClipboardData,CF_TEXT
.if eax!=0
invoke GlobalLock,eax
mov Clip,eax
invoke MessageBox,NULL,addr Clip,addr tit,MB_OK
invoke GlobalUnlock,Clip
.endif
invoke CloseClipboard
 
i got a messagebox like shit i dnt know how to explain it
 

 



#2 LeFF

LeFF

    Advanced Member

  • Moderator
  • Reputation: 457
    Very Good
  • 426 posts
Contributor

Posted 27 May 2013 - 08:15 AM

invoke OpenClipboard,NULL
invoke GetClipboardData,CF_TEXT
.if eax!=0
  mov Clip, eax
  invoke GlobalLock, eax
  invoke MessageBoxA, NULL, eax, NULL, MB_OK
  invoke GlobalUnlock, Clip
.endif
invoke CloseClipboard

  • Tony likes this

#3 Hess

Hess

    Intelligence Service

  • Loyalist
  • Reputation: 766
    Excellent
  • 2,821 posts
  • LocationBelgrade
Contributor

Posted 27 May 2013 - 08:57 AM

Have You ever thought about these tools: clipbrd.exe and clip.exe ? :) One is from XP , other is from win 7 command line tool with parameters , give them a try. :) Other one , clip.exe gives You ability to pass clipboard contens , change it , read it , etc. :)

Please Login or Register to see this Hidden Content







Also tagged with one or more of these keywords: help, masm