Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2004, 09:28 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to copy text

hello every one.
I want to ask if somebody know how to copy text without CTRL+C.
and more advanced- how can I do that like babylon style.
I mean just click rightclick and Shift on some word, and auto the text selected and copy.

if you hava any clue I will really appraiset it.
(may be some API or code)

one more question, about open internet page, I know shell and shellexc functions, but how can i open page in new window each time.

thanks.


Reply With Quote
  #2 (permalink)  
Old October 24th, 2004, 08:38 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  I am not clear about your question. But as i understood,

 use system object CLIPBOARD

clipboard.getText 'to get back from the clipboard
clipboard.setText 'to copy the text to clipboard


To open internet explorer, use
Project -> References -> Microsoft Internet Controls

dim objIE as new InternetExplorer

ie.menubar=true
ie.visible.true
ie.navigate2 "http://p2p.wrox.com"


-------------
Rajani

Reply With Quote
  #3 (permalink)  
Old October 25th, 2004, 09:50 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by rajanikrishna
 Hello,

I am not clear about your question. But as i understood,

use system object CLIPBOARD

clipboard.getText 'to get back from the clipboard
clipboard.setText 'to copy the text to clipboard


To open internet explorer, use
Project -> References -> Microsoft Internet Controls

dim objIE as new InternetExplorer

ie.menubar=true
ie.visible.true
ie.navigate2 "http://p2p.wrox.com"


-------------
Rajani


Thank you for your time and for your answer.
the answer about the explorer win is really good.

In my other question I mean something else.
how can i send through vb messge to any window to copy the selected text. like CTRL+C I want to know if it is possible to do that without CTRL+C.
some program event can copy text of button or caption, they even do the select affect on the text(BABYLON).

I think it is too complicated, but yet I give it a try and ask. my be some body know.

alot of thnx.



Reply With Quote
  #4 (permalink)  
Old October 25th, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


Is that text is in textbox?

 then, you can do it like this w/o CTRL+C

me.txt1.text=formname.txtText.selText


------------
Rajani

Reply With Quote
  #5 (permalink)  
Old October 26th, 2004, 06:30 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by rajanikrishna


Is that text is in textbox?

then, you can do it like this w/o CTRL+C

me.txt1.text=formname.txtText.selText


------------
Rajani

sorry but no, the text can appear in any window on any control on the OS.
in second thought I dont think this is so easy.
if I could solve this problem with some API it will be good.
but if it is too complex I give up the idea.

again a lot of thanks... :)


Reply With Quote
  #6 (permalink)  
Old October 29th, 2004, 09:57 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi to all

If you want to use api then surf around GetWindowFromPoint API. For a complete refrence visit this link http://www.mentalis.org/agnet/apiguide.shtml

Anubhav Kumar
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
how to copy text in a word file on the clipboard donrafeal Word VBA 3 February 1st, 2007 12:32 AM
Copy text from 1 doc to other doc thru vba in word itchock Word VBA 2 December 29th, 2006 02:47 AM
Copy text to win Clipboard irresistible007 Beginning VB 6 6 October 5th, 2006 06:04 AM



All times are GMT -4. The time now is 05:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.