Solved

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

Posted on 2013-05-16
3
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 82

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

623 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