Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2004, 09:28 AM
Registered User
 
Join Date: Aug 2004
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.


 
Old October 24th, 2004, 08:38 PM
Friend of Wrox
 
Join Date: Sep 2003
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

 
Old October 25th, 2004, 09:50 AM
Registered User
 
Join Date: Aug 2004
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.



 
Old October 25th, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Sep 2003
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

 
Old October 26th, 2004, 06:30 AM
Registered User
 
Join Date: Aug 2004
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... :)


 
Old October 29th, 2004, 09:57 AM
Friend of Wrox
 
Join Date: Oct 2004
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





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





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