Hi,
How can we get the content of clipboard with program? 16 1940
MSIE supports obtaining the user's clipboard.
Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht
news:uH******** ******@TK2MSFTN GP15.phx.gbl... ad wrote: Hi, How can we get the content of clipboard with program?
client-side (on the user's PC): you can't. you don't have access to it...
server-side: http://msdn.microsoft.com/library/de...classtopic.asp
-- craig Microsoft MVP - ASP/ASP.NET
Using Javascript Command
document.execCo mmand('paste');
more details here .. http://msdn.microsoft.com/library/de...xeccommand.asp
I think this works only in IE and Browser settings can block the paste
operation..
"ad" wrote: Hi, How can we get the content of clipboard with program?
Edwin Knoppert wrote: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... ad wrote: Hi, How can we get the content of clipboard with program? client-side (on the user's PC): you can't. you don't have access to it...
server-side: http://msdn.microsoft.com/library/de...classtopic.asp
-- craig Microsoft MVP - ASP/ASP.NET
Yikes, you're right! Tells you how often I build IE-specific
applications, not to say other browsers might not have given this
capability. Me as a user? I don't like it....do you know if you get
cross-domain access (read stuff I copied while browsing a different domain)?
Anyway, I dug this up after Edwin's reply... http://msdn.microsoft.com/workshop/a...pboardData.asp
looks like it only works for text that is copy/paste using the menus in
IE (not using shortcut keys)? Just figuring this out for myself as well...
--
craig
Microsoft MVP - ASP/ASP.NET
re: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
Please post sample code.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net... MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... ad wrote: Hi, How can we get the content of clipboard with program?
client-side (on the user's PC): you can't. you don't have access to it...
server-side: http://msdn.microsoft.com/library/de...classtopic.asp
-- craig Microsoft MVP - ASP/ASP.NET
I did see this work on a live website, not mine.
It did work.
It was there to proof that the CB could be read.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:ug******** ******@TK2MSFTN GP12.phx.gbl... re: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
Please post sample code. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net... MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... ad wrote: Hi, How can we get the content of clipboard with program?
client-side (on the user's PC): you can't. you don't have access to it...
server-side: http://msdn.microsoft.com/library/de...classtopic.asp
-- craig Microsoft MVP - ASP/ASP.NET
I would have liked to see sample code for doing that,
in ASP.NET, if it's that easy.
Maybe you didn't take into account that the clipboard class
is in the System.Windows. Forms namespace ( which, as
Craig told you, cannot be accessed by ASP.NET server-side ) ?
Even if it were to be accessed, it would be the *server's* clipboard
that's accessed, if this thing is running server-side, wouldn't it ?
So, that leaves, as the only alternative, to write a client-side program
which captures client data, in sync with the current ASP.NET context,
have the user install it and run it so that the correct data is captured client-side,
and figure out a way to insert the clipboard's contents to the server, in context
with the current request.
That last part doesn't seem too complicated, although it's certainly not "easy".
The first part certainly is complicated, and that's why I wondered why you
described the procedure as "once obtained it is easy to transmit to the server".
That "once obtained" is what you overlooked.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net... I did see this work on a live website, not mine. It did work. It was there to proof that the CB could be read.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht news:ug******** ******@TK2MSFTN GP12.phx.gbl... re: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
Please post sample code.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net... MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... ad wrote: > Hi, > How can we get the content of clipboard with program?
client-side (on the user's PC): you can't. you don't have access to it... server-side: http://msdn.microsoft.com/library/de...classtopic.asp
-- craig Microsoft MVP - ASP/ASP.NET
I don't think you listen well, i said client side.
Has nothing to do with ASP.NET etc..
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl... I would have liked to see sample code for doing that, in ASP.NET, if it's that easy.
Maybe you didn't take into account that the clipboard class is in the System.Windows. Forms namespace ( which, as Craig told you, cannot be accessed by ASP.NET server-side ) ?
Even if it were to be accessed, it would be the *server's* clipboard that's accessed, if this thing is running server-side, wouldn't it ?
So, that leaves, as the only alternative, to write a client-side program which captures client data, in sync with the current ASP.NET context, have the user install it and run it so that the correct data is captured client-side, and figure out a way to insert the clipboard's contents to the server, in context with the current request.
That last part doesn't seem too complicated, although it's certainly not "easy".
The first part certainly is complicated, and that's why I wondered why you described the procedure as "once obtained it is easy to transmit to the server".
That "once obtained" is what you overlooked. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net...I did see this work on a live website, not mine. It did work. It was there to proof that the CB could be read.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht news:ug******** ******@TK2MSFTN GP12.phx.gbl... re: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
Please post sample code.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net... MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... > ad wrote: >> Hi, >> How can we get the content of clipboard with program? > > client-side (on the user's PC): you can't. you don't have access to > it... server-side: > http://msdn.microsoft.com/library/de...classtopic.asp > > -- > craig > Microsoft MVP - ASP/ASP.NET
Hmm, maybe i was to harsh.
But you get the idea.
It must be seen as local stuff.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl... I would have liked to see sample code for doing that, in ASP.NET, if it's that easy.
Maybe you didn't take into account that the clipboard class is in the System.Windows. Forms namespace ( which, as Craig told you, cannot be accessed by ASP.NET server-side ) ?
Even if it were to be accessed, it would be the *server's* clipboard that's accessed, if this thing is running server-side, wouldn't it ?
So, that leaves, as the only alternative, to write a client-side program which captures client data, in sync with the current ASP.NET context, have the user install it and run it so that the correct data is captured client-side, and figure out a way to insert the clipboard's contents to the server, in context with the current request.
That last part doesn't seem too complicated, although it's certainly not "easy".
The first part certainly is complicated, and that's why I wondered why you described the procedure as "once obtained it is easy to transmit to the server".
That "once obtained" is what you overlooked. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net...I did see this work on a live website, not mine. It did work. It was there to proof that the CB could be read.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht news:ug******** ******@TK2MSFTN GP12.phx.gbl... re: MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
Please post sample code.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message news:dm******** **@azure.qinip. net... MSIE supports obtaining the user's clipboard. Once obtained it is easy to transmit to the server.
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl... > ad wrote: >> Hi, >> How can we get the content of clipboard with program? > > client-side (on the user's PC): you can't. you don't have access to > it... server-side: > http://msdn.microsoft.com/library/de...classtopic.asp > > -- > craig > Microsoft MVP - ASP/ASP.NET
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: xyz |
last post by:
I have a menu item to handle clipboard actions (cut, copy, paste).
When I paste text that I copied from a Hungarian web page, the display
looks normal on my RichTextBox, but the text retrieved from the
clipboard is corrupted. For example, a U with double accent ( byte
code x'FB' ) is replaced by a question mark in my txtEdit.Text after a
Paste operation.
It seems that the Clipboard.GetText() is changing the data.
How is it possible to...
|
by: LG |
last post by:
Just have a question with regards to the clipboard, and how to read what
other applications (Adobe InDesignCS) place in the clipboard.
I am currently in the process of creating a booklet from a database, and I
need the data to be laid out in a tabular format, and set out in a specific
way. At the current point in time, I am copy/pasting the raw text from the
database into a table layout in InDesign. What I was thinking is that if I
could...
|
by: lgbjr |
last post by:
Hello All,
I¡¯m using a context menu associated with some pictureboxes to provide
copy/paste functionality. Copying the image to the clipboard was easy. But
pasting an image from the clipboard is proving to be more difficult. These
pictureboxes are bound to an AccessDB. If the user wants to add an image,
they select an image using an OpenFileDialog:
Dim result As DialogResult = Pic_Sel.ShowDialog()
If (result = DialogResult.OK) Then
|
by: James Russo |
last post by:
Hello,
I have an application which requires an image to be retrived from the
clipboard. So, I am writting a quick C# windows application to take
images from a webcam and store a single frame on the clipboard so it can
be pasted into this other application. My solution is working fine with
all applications (mspaint, word, wordpad) except the one I need it to
work with. I've contacted the vendor of the application, but I haven't
been able...
|
by: Newbie |
last post by:
How do I clear the clipboard in VB.NET 2003?
TIA
Newbie
| |
by: Peter Duniho |
last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by
another application (Word 2003 in this case, but it shouldn't matter).
I naively thought that I'd be able to use the Clipboard class to get an
EnhancedMetafile or MetafilePict object from the Clipboard, use that to
create a new Metafile object, and then draw that Metafile object using
Graphics.DrawImage.
It doesn't seem to be that simple.
|
by: Figmo |
last post by:
Wow.....this is darned odd....
I have an app that integrates with other applications.
It registers a global hotkey with Windows. When the hotkey executes
it sends a CTRL-C to the active window (any application) to copy
whatever text is selected to the clipboard. It then issues a C#
Clipboard.GetText(...) and does some processing with this string.
All is good, no errors thus far.
|
by: active |
last post by:
Guess I'm looking for someone who likes to work difficult puzzles.
I can't seem to ever retrieve a palette handle from the clipboard.
Below is a simple test program that demonstrates the problem.
The program uses windows api to get a handle to a palette from the
clipboard.
The palette needs to be put there by another program - maybe Photoshop.
|
by: Joe Duchtel |
last post by:
Hello -
I have the following code to get a bitmap from the clipboard and to
save it to a *.png file ...
Dim lData As IDataObject = Clipboard.GetDataObject()
If lData.GetDataPresent(DataFormats.Bitmap) Then
Dim lPictureBox As New PictureBox
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |