-
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]
-
Why don't you use CLipboard.Gettext!
-
-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.
-
-
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
-
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.