Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Change Icon Pin
vallikumar17-Jan-06 23:41
vallikumar17-Jan-06 23:41 
GeneralRe: Change Icon Pin
sweep12318-Jan-06 1:36
sweep12318-Jan-06 1:36 
Questionfake input , cant understand ~.~ Pin
leenmie17-Jan-06 22:33
leenmie17-Jan-06 22:33 
AnswerRe: fake input , cant understand ~.~ Pin
Prakash Nadar17-Jan-06 22:39
Prakash Nadar17-Jan-06 22:39 
GeneralRe: fake input , cant understand ~.~ Pin
leenmie17-Jan-06 22:43
leenmie17-Jan-06 22:43 
GeneralRe: fake input , cant understand ~.~ Pin
Owner drawn17-Jan-06 22:55
Owner drawn17-Jan-06 22:55 
GeneralRe: fake input , cant understand ~.~ Pin
leenmie17-Jan-06 23:05
leenmie17-Jan-06 23:05 
AnswerRe: fake input , cant understand ~.~ Pin
Stephen Hewitt18-Jan-06 11:56
Stephen Hewitt18-Jan-06 11:56 
I feel like I've answered this question at least three times but here we go again. Faking input using the PostMessage or PostMessage API is a hit and miss affair - It will work for some applications and not so well, if at all, with others. The reason is that there is more information associated with a message other then the HWND, the message, the WPARAM and the LPARAM. To access this extra information you use APIs such as GetMessagePos and GetMessageTime. Then there is software that calls functions such as GetAsyncKeyState (this also works for mouse buttons).

This is the reason for the SendInput API - This is what you use to fake input - Unless you're faking for a particular app and you know the message techniques work.

If the application uses DirectInput I'm not sure how you would proceed and if the SendInput will work. This would probably only be an issue for games.


Steve
AnswerRe: fake input , cant understand ~.~ Pin
Stephen Hewitt18-Jan-06 18:12
Stephen Hewitt18-Jan-06 18:12 
QuestionJapanese EUC to UNICODE Pin
DaTxomin17-Jan-06 21:33
DaTxomin17-Jan-06 21:33 
AnswerRe: Japanese EUC to UNICODE Pin
vallikumar17-Jan-06 22:24
vallikumar17-Jan-06 22:24 
GeneralRe: Japanese EUC to UNICODE Pin
DaTxomin18-Jan-06 0:44
DaTxomin18-Jan-06 0:44 
QuestionTEXTMETRIC tmX.tmOverhang: why is it zero even for BOLD font?! Pin
Axonn Echysttas17-Jan-06 21:28
Axonn Echysttas17-Jan-06 21:28 
AnswerRe: TEXTMETRIC tmX.tmOverhang: why is it zero even for BOLD font?! Pin
James Brown17-Jan-06 21:34
James Brown17-Jan-06 21:34 
GeneralRe: TEXTMETRIC tmX.tmOverhang: why is it zero even for BOLD font?! Pin
Axonn Echysttas17-Jan-06 22:03
Axonn Echysttas17-Jan-06 22:03 
AnswerRe: TEXTMETRIC tmX.tmOverhang: why is it zero even for BOLD font?! Pin
Axonn Echysttas17-Jan-06 23:05
Axonn Echysttas17-Jan-06 23:05 
GeneralRe: TEXTMETRIC tmX.tmOverhang: why is it zero even for BOLD font?! Pin
Owner drawn18-Jan-06 0:52
Owner drawn18-Jan-06 0:52 
QuestionNTFS permissions Pin
kelprinc17-Jan-06 21:02
kelprinc17-Jan-06 21:02 
QuestionHow to set The Path? Pin
rajeev8217-Jan-06 20:32
rajeev8217-Jan-06 20:32 
AnswerRe: How to set The Path? Pin
Owner drawn17-Jan-06 20:40
Owner drawn17-Jan-06 20:40 
AnswerRe: How to set The Path? Pin
vallikumar17-Jan-06 21:19
vallikumar17-Jan-06 21:19 
AnswerRe: How to set The Path? Pin
ThatsAlok18-Jan-06 0:42
ThatsAlok18-Jan-06 0:42 
AnswerRe: How to set The Path? Pin
vikas amin18-Jan-06 2:06
vikas amin18-Jan-06 2:06 
Questionhow to hide title bar and status bar from the window. Pin
baldha rakesh17-Jan-06 20:14
baldha rakesh17-Jan-06 20:14 
AnswerRe: how to hide title bar and status bar from the window. Pin
Owner drawn17-Jan-06 20:22
Owner drawn17-Jan-06 20:22 

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.