Solved

Reading items in Windows Clipboard...is this even possible?

Posted on 2013-05-16
3
441 Views
Last Modified: 2013-05-17
I am trying to make a tool that will allow me to capture my Ctrl + C keystrokes and save the data in a file so I can access any time. I was thinking I could read items from the clipboard somehow in code and then export the items to an xml file.

 My tool would run minimized (VB.NET app). Any time I click Ctrl+C, the tool would save that to a file and my app would be able to retrieve items, even after the computer is shut down.

Is it possible to manipulate the windows clipboard in code? If so can you point me in the right direction. I have been researching and haven't found anything quite right.
0
Comment
Question by:imonfireDAMMIT
3 Comments
 

Expert Comment

by:RyteBytes
ID: 39173531
0
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39173658
Sub Get_Text_From_ClipBoard()
Try
If My.Computer.Clipboard.ContainsText() Then
Dim ClipText As String
ClipText = My.Computer.Clipboard.GetText
MsgBox(ClipText)
Else
MsgBox("No Text in ClipBoard")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

Open in new window


http://dotnetdud.blogspot.ca/2008/08/get-stored-text-from-clipboard-using.html
0
 
LVL 1

Author Closing Comment

by:imonfireDAMMIT
ID: 39175309
I seen this site when I was doing my research. I think I will go this route...thanks. I originally didn't think it would be useful but now I figured out how to pull images from the clipboard. Easier than I initially thought.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
auto desk feauture 4 27
Why, and when, to use Windows Workflow 1 20
Showdialog 8 20
Can't install Citrix Receiver anymore 10 10
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now