Results 1 to 6 of 6

Thread: is there an api call to paste?

  1. #1

    Thread Starter
    Addicted Member cwm's Avatar
    Join Date
    Mar 2000
    Posts
    133
    ok, when i use hotkeys with sendkeys it screws everything up, i tried sendkeys "^{V}" but it wont do that, either.

    Code:
    Function SubClassedWnd(ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
        If Msg = WM_HOTKEY And wParam > 0 Then '= 1 Then
    
                SendKeys ClipboardSaver.Text(wParam)        
        
         End If
        SubClassedWnd = CallWindowProc(lPrevWndProc, hWnd, Msg, wParam, lParam)
    End Function
    i figure if there was some sorta api call to paste it'd work just fine, anyone know? or any other work-around?

    [Edited by cwm on 04-08-2000 at 06:29 AM]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Why don't you use CLipboard.Gettext!
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Addicted Member cwm's Avatar
    Join Date
    Mar 2000
    Posts
    133
    -paste-

    i want the program to be in a different window and when the hotkey is pressed it will paste the text from a text field wherever the cursor is.

  4. #4

    Thread Starter
    Addicted Member cwm's Avatar
    Join Date
    Mar 2000
    Posts
    133
    *cough*

  5. #5
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Not sure what you are looking for, but try this amigo.


    Call OpenClipboard(Screen.ActiveForm.hWnd)
    Call EmptyClipboard
    Call SetClipboardData(2, lng_BMP_Handle)
    Call CloseClipboard
    Chemically Formulated As:
    Dr. Nitro

  6. #6

    Thread Starter
    Addicted Member cwm's Avatar
    Join Date
    Mar 2000
    Posts
    133
    again, NOT copying, i don't need to copy, i need to paste.
    i.e. hit a key and it puts text from a text field where the cursor is.
    oh well, i found out that it's the alt key that was causing the problems, so i just wont use it as a hot key.

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