473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Get data from one app and move it to another?

Is it possible to, for example, have an application grab the data on a
document in Windows note pad, and insert that data in some other application
such as Internet Explorer's address bar? Any help or direction would be
appreciated. Thanks!
Sep 4 '06 #1
2 2187
Bryan,

Yes, it is possible. This app would have to get the window handle of
the text area in notepad (you can use the FindWindow API for this, I
believe). You can also get the text of the window by using the SendMessage
API function, passing the WM_GETTEXT message.

Once you have the text, you can use the same method to call the
SendMessage API function with the WM_SETTEXT message and set the edit area
of the drop down in the address bar. However, if you are trying to get an
instance of Internet Explorer to navigate to a URL, you are better off using
automation to find an open instance of internet explorer, and then setting
the URL to navigate to.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bryan" <Br***@discussions.microsoft.comwrote in message
news:5B**********************************@microsof t.com...
Is it possible to, for example, have an application grab the data on a
document in Windows note pad, and insert that data in some other
application
such as Internet Explorer's address bar? Any help or direction would be
appreciated. Thanks!

Sep 4 '06 #2
Thank you very much!.. That's exactly what I needed.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Bryan,

Yes, it is possible. This app would have to get the window handle of
the text area in notepad (you can use the FindWindow API for this, I
believe). You can also get the text of the window by using the SendMessage
API function, passing the WM_GETTEXT message.

Once you have the text, you can use the same method to call the
SendMessage API function with the WM_SETTEXT message and set the edit area
of the drop down in the address bar. However, if you are trying to get an
instance of Internet Explorer to navigate to a URL, you are better off using
automation to find an open instance of internet explorer, and then setting
the URL to navigate to.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bryan" <Br***@discussions.microsoft.comwrote in message
news:5B**********************************@microsof t.com...
Is it possible to, for example, have an application grab the data on a
document in Windows note pad, and insert that data in some other
application
such as Internet Explorer's address bar? Any help or direction would be
appreciated. Thanks!


Sep 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marc | last post by:
Hello, Until recently I ran a php/apache mySQL wbsite on MacOSX. For some reason I can't get the machine working again so now the site is offline. I succeeded to copy the MySQL data from the Mac...
2
by: EK9 | last post by:
I have a table contains huge rows of data. Performance issue raised. I am thinking archive some data so that the table will not be that big. The most convience way is move it to another table. The...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
6
by: Noozer | last post by:
We've created a new database and need to import the data from our old database. Both are MS Access databases and each have multiple tables. The table structure of each table is completely different...
5
by: Tim | last post by:
Hi, I am trying to move a datacolumn in a datatable. What I have tried so far is to create a new datacolumn set it equal to the one I want to remove and then remove it, add another column and...
12
by: Divick | last post by:
Hi all, does any one know of any data structure in which I can search the key and value equally fast? Though I could use hashes, but I can only search in constant time on key but not on value. If...
4
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new...
1
by: anjupt | last post by:
Hi, I have 2 listboxes with data fetched from database so for both the listboxes datasource is set .i tried to move data from one listbox to another listbox but Error"An unhandled exception of...
17
by: lokidog | last post by:
I am trying to automatically transfer data from one textbox to another between subforms within a 'main' form. I put this code into the Gotfocus eventprocedure: Private Sub Date_GotFocus() If...
2
by: arial | last post by:
Hi all, I am learning sql server 2000/2005. Now, I need to move data from my one sql server 1 to another sql server 2. I have five tables and data schema is same on both the server. as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.