|
-
Apr 7th, 2000, 05:15 PM
#1
Thread Starter
Addicted Member
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]
-
Apr 7th, 2000, 05:20 PM
#2
transcendental analytic
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.
-
Apr 7th, 2000, 05:24 PM
#3
Thread Starter
Addicted Member
-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.
-
Apr 8th, 2000, 02:18 AM
#4
Thread Starter
Addicted Member
-
Apr 8th, 2000, 01:38 PM
#5
Fanatic Member
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
-
Apr 8th, 2000, 03:41 PM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|