Results 1 to 4 of 4

Thread: Highlight, Copy, Re-Paste

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question Highlight, Copy, Re-Paste

    What I want to do SYSTEM WIDE is:

    After the user does Highlight (Select) text, hotkey (CTRL+ALT+C):

    Then automatically fire in this sequence: copy to clipboard, manipulate text, re-paste to original location.

    I know how to do the hotkey part.

    Thanks

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    I think there is an API named GetWindowText (I'm not sure about the name) but I'm not sure what it does either ... Another guess would be the SendMessage API with the gettext constant if you can find the hwnd...


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    SetClipboardData ....

    J4U - if you go over to allapi.net & download the API guide this tells you a load of 'em all with samples you can use.

    The left side of the app divides all of the api calls either by name or by group - one of these groups is "clipboard" which lists all the calls you'll need.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    The GetWindow function retrieves the handle of a window that has the specified relationship (Z order or owner) to the specified window.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width