Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dependencies for Visual STudio8 Pin
Richard Andrew x6419-Dec-11 20:24
professionalRichard Andrew x6419-Dec-11 20:24 
QuestionHow to capture snapshot of dialog in JPEG format? Pin
amitwadekar19-Dec-11 18:21
amitwadekar19-Dec-11 18:21 
AnswerRe: How to capture snapshot of dialog in JPEG format? Pin
Chandrasekharan P19-Dec-11 18:36
Chandrasekharan P19-Dec-11 18:36 
GeneralRe: How to capture snapshot of dialog in JPEG format? Pin
amitwadekar19-Dec-11 19:18
amitwadekar19-Dec-11 19:18 
AnswerRe: How to capture snapshot of dialog in JPEG format? Pin
PJ Arends19-Dec-11 21:43
professionalPJ Arends19-Dec-11 21:43 
GeneralRe: How to capture snapshot of dialog in JPEG format? Pin
amitwadekar25-Dec-11 19:52
amitwadekar25-Dec-11 19:52 
GeneralRe: How to capture snapshot of dialog in JPEG format? Pin
amitwadekar26-Dec-11 18:33
amitwadekar26-Dec-11 18:33 
QuestionSendInput() Pin
Member 801032519-Dec-11 16:29
Member 801032519-Dec-11 16:29 
Hello all. I'm trying to synthesize alt + space to bring up the output window's menu using SendInput(). For some reason it works on other windows that I click on after compiling, but CMD windows just take it as a space key press. Here's what I have:

    Sleep(2500);

INPUT in1 = {INPUT_KEYBOARD};
INPUT in2 = {INPUT_KEYBOARD};
INPUT in3 = {INPUT_KEYBOARD};
INPUT in4 = {INPUT_KEYBOARD};
KEYBDINPUT k1 = {VK_MENU,0,0,0,0};
KEYBDINPUT k2 = {VK_SPACE,0,0,0,0};
KEYBDINPUT k3 = {VK_SPACE,0,KEYEVENTF_KEYUP,0,0};
KEYBDINPUT k4 = {VK_MENU,0,KEYEVENTF_KEYUP,0,0};
in1.ki = k1;
in2.ki = k2;
in3.ki = k3;
in4.ki = k4;
SendInput(1, &in1, sizeof(INPUT));
SendInput(1, &in2, sizeof(INPUT));
SendInput(1, &in3, sizeof(INPUT));
SendInput(1, &in4, sizeof(INPUT));

system("pause");


So this works in other windows and ignores the alt press in CMD windows. Snarl. The alt + space hot key works in CMD windows when I press the keys manually.
AnswerRe: SendInput() Pin
Code-o-mat20-Dec-11 8:17
Code-o-mat20-Dec-11 8:17 
QuestionOptimization Pin
columbos1492719-Dec-11 3:41
columbos1492719-Dec-11 3:41 
AnswerRe: Optimization Pin
Chris Losinger19-Dec-11 4:12
professionalChris Losinger19-Dec-11 4:12 
AnswerRe: Optimization Pin
Code-o-mat19-Dec-11 4:13
Code-o-mat19-Dec-11 4:13 
QuestionAdding a int array inside CStringArray Pin
VCProgrammer19-Dec-11 1:07
VCProgrammer19-Dec-11 1:07 
QuestionRe: Adding a int array inside CStringArray Pin
CPallini19-Dec-11 1:26
mveCPallini19-Dec-11 1:26 
AnswerRe: Adding a int array inside CStringArray Pin
Richard MacCutchan19-Dec-11 2:12
mveRichard MacCutchan19-Dec-11 2:12 
GeneralRe: Adding a int array inside CStringArray Pin
Albert Holguin19-Dec-11 3:12
professionalAlbert Holguin19-Dec-11 3:12 
GeneralRe: Adding a int array inside CStringArray Pin
Richard MacCutchan19-Dec-11 6:00
mveRichard MacCutchan19-Dec-11 6:00 
QuestionAdapter Classes for using C++ library through JNI Pin
pandit8419-Dec-11 0:26
pandit8419-Dec-11 0:26 
AnswerRe: Adapter Classes for using C++ library through JNI Pin
CPallini19-Dec-11 3:12
mveCPallini19-Dec-11 3:12 
QuestionCWinThread Pin
columbos1492718-Dec-11 22:45
columbos1492718-Dec-11 22:45 
AnswerRe: CWinThread Pin
CPallini18-Dec-11 23:12
mveCPallini18-Dec-11 23:12 
AnswerRe: CWinThread Pin
Albert Holguin19-Dec-11 3:15
professionalAlbert Holguin19-Dec-11 3:15 
QuestionSave As Image Pin
john563218-Dec-11 22:08
john563218-Dec-11 22:08 
AnswerRe: Save As Image Pin
CPallini18-Dec-11 22:18
mveCPallini18-Dec-11 22:18 
GeneralRe: Save As Image Pin
john563218-Dec-11 23:44
john563218-Dec-11 23:44 

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.