Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClipboard API calls Pin
impeham11-Jan-04 23:54
impeham11-Jan-04 23:54 
GeneralRe: Clipboard API calls Pin
pratheesh12-Jan-04 1:14
pratheesh12-Jan-04 1:14 
GeneralRe: Clipboard API calls Pin
impeham12-Jan-04 2:19
impeham12-Jan-04 2:19 
GeneralRe: Clipboard API calls Pin
pratheesh12-Jan-04 18:24
pratheesh12-Jan-04 18:24 
GeneralRe: Clipboard API calls Pin
impeham12-Jan-04 23:48
impeham12-Jan-04 23:48 
GeneralRe: Clipboard API calls Pin
pratheesh13-Jan-04 23:23
pratheesh13-Jan-04 23:23 
GeneralRe: Clipboard API calls Pin
David Crow12-Jan-04 5:13
David Crow12-Jan-04 5:13 
GeneralProblem with Wh_getmessage Hook Pin
percyvimal11-Jan-04 23:52
percyvimal11-Jan-04 23:52 
I have done Wh_getmessage hook.
In my filter function i have typecast the Wm_char message

like Say if Char 'A' is pressed i send the char 'A' as it is to the application.

NOw if user press 'B' then what i am doing is changing the Char 'B' to BackSpace character.

TO this point the application is working properly in all application for it is a system wide hook , where pressing of B removes 'A' for B is a backspace character

A , B->backspace

out put = NUll

Now what i am doing is using PostMessage api i am sendging 2 characters to that application which is active

Say POSTMESSAGE(C ,D)

I got these problems:
1. The character C when posted to the application , my filter function is called again and( i have defined a rule for C where if the user type
C then change to E) and i expected C to be printed in the application , but instead E is coming.
I have to find a way how to prevent this ie the postmessage which i have send to the application looping through my filter funcion again and again.

___________________________________________________________________________
2. If i declare like this

A , B->backspace character , Postmessage(C,D)

Expected output
CD

Output obtained in notepad and photoshop
AC and D is removed(Wrong)

Output obtaied in all other application
CD(correct)
_________________________________________________________________________
3. So i tried this method
A , B->NULL , Postmessage(backSpace,C,D)

Expected output
CD
Output obtained in notepad and photoshop
CD(correct)


Output obtaied in all other application
AC and D is removed(Wrong)




Could anyone tell me how i can overcome these problems

Thanks in advance

with regards
vimal

GeneralSend message from separate Thread Pin
Cedric Moonen11-Jan-04 23:18
Cedric Moonen11-Jan-04 23:18 
GeneralRe: Send message from separate Thread Pin
Roger Allen11-Jan-04 23:51
Roger Allen11-Jan-04 23:51 
GeneralRe: Send message from separate Thread Pin
Cedric Moonen11-Jan-04 23:57
Cedric Moonen11-Jan-04 23:57 
GeneralRe: Send message from separate Thread Pin
Cedric Moonen12-Jan-04 2:56
Cedric Moonen12-Jan-04 2:56 
GeneralRe: Send message from separate Thread Pin
KarstenK12-Jan-04 4:21
mveKarstenK12-Jan-04 4:21 
GeneralRe: Send message from separate Thread Pin
Cedric Moonen12-Jan-04 4:37
Cedric Moonen12-Jan-04 4:37 
GeneralSaving information in registry 'HKEY_LOCAL_MACHINE' Pin
JensB11-Jan-04 23:14
JensB11-Jan-04 23:14 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Roger Allen11-Jan-04 23:54
Roger Allen11-Jan-04 23:54 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Jijo.Raj12-Jan-04 0:07
Jijo.Raj12-Jan-04 0:07 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
JensB12-Jan-04 0:13
JensB12-Jan-04 0:13 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Jijo.Raj12-Jan-04 1:38
Jijo.Raj12-Jan-04 1:38 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
JensB12-Jan-04 2:09
JensB12-Jan-04 2:09 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Jijo.Raj12-Jan-04 2:13
Jijo.Raj12-Jan-04 2:13 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
JensB12-Jan-04 4:47
JensB12-Jan-04 4:47 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Jijo.Raj12-Jan-04 5:46
Jijo.Raj12-Jan-04 5:46 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Anonymous12-Jan-04 20:11
Anonymous12-Jan-04 20:11 
GeneralRe: Saving information in registry 'HKEY_LOCAL_MACHINE' Pin
Jijo.Raj13-Jan-04 2:26
Jijo.Raj13-Jan-04 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.