Reading in Highlighted Text by Mouse

This is a discussion on Reading in Highlighted Text by Mouse within the C Programming forums, part of the General Programming Boards category; I've got a program that I've been intending to do for some time now. It's suppose to read some text ...

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    6

    Reading in Highlighted Text by Mouse

    I've got a program that I've been intending to do for some time now. It's suppose to read some text that I've highlighted (like the copy command or ctrl-v but without having to do anything aside from highlighting the text) and automatically paste it on some field on an internet web page. I think you guys know what I'm trying to do here. I just want to copy-paste and copy-paste some more in the least time possible (it's a job thing) . I know C well enough. I only need to know how to read in highlighted text.

    'appreciate anybody's help.
    Last edited by patriots21; 08-14-2010 at 12:06 AM.

  2. #2
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,623
    1. Use WinAPI to capture mouse events like mouse down and mouse up.
    2. Measure the time between these events.
    3. If it is long enough, you can call on the clipboard with something like SendKeys("^c");
    4. Check the clipboard and grab whatever's there. You can do with the data what you want at that point.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    6
    does sendkey work in C? or do I have to use VB instead? i would prefer to use C.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-05-2010, 02:43 PM
  2. Replies: 7
    Last Post: 02-02-2009, 06:27 AM
  3. reading text
    By Anator in forum C++ Programming
    Replies: 33
    Last Post: 01-30-2008, 11:13 AM
  4. reading text from a file
    By gustavson in forum C Programming
    Replies: 1
    Last Post: 10-26-2007, 01:18 AM
  5. Getting Any Text in Mouse positon From Any Window
    By Kenan in forum Windows Programming
    Replies: 2
    Last Post: 08-01-2003, 07:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21