Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 4:34
Dhyanga28-Jul-10 4:34 
GeneralRe: problem using dataRelation in dot net Pin
Eddy Vluggen28-Jul-10 5:03
professionalEddy Vluggen28-Jul-10 5:03 
GeneralRe: problem using dataRelation in dot net Pin
Eddy Vluggen28-Jul-10 5:13
professionalEddy Vluggen28-Jul-10 5:13 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:38
Dhyanga28-Jul-10 5:38 
AnswerRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:00
sitebuilderLuc Pattyn28-Jul-10 5:00 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:08
Dhyanga28-Jul-10 5:08 
AnswerRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:22
sitebuilderLuc Pattyn28-Jul-10 5:22 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:26
Richard Blythe28-Jul-10 5:26 
GeneralRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:47
sitebuilderLuc Pattyn28-Jul-10 5:47 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:27
Dhyanga28-Jul-10 5:27 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:41
Richard Blythe28-Jul-10 5:41 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:44
Dhyanga28-Jul-10 5:44 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:54
Richard Blythe28-Jul-10 5:54 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 6:22
Dhyanga28-Jul-10 6:22 
GeneralRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:44
sitebuilderLuc Pattyn28-Jul-10 5:44 
AnswerRe: problem using dataRelation in dot net PinPopular
Richard Blythe28-Jul-10 5:03
Richard Blythe28-Jul-10 5:03 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:23
Dhyanga28-Jul-10 5:23 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:30
Richard Blythe28-Jul-10 5:30 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:37
Dhyanga28-Jul-10 5:37 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 7:24
Dhyanga28-Jul-10 7:24 
AnswerRe: problem using dataRelation in dot net Pin
Dhyanga29-Jul-10 8:40
Dhyanga29-Jul-10 8:40 
QuestionProblem with Send Keys to background process Pin
Member 372749928-Jul-10 3:54
Member 372749928-Jul-10 3:54 
AnswerRe: Problem with Send Keys to background process Pin
freakyit28-Jul-10 4:17
freakyit28-Jul-10 4:17 
GeneralRe: Problem with Send Keys to background process Pin
Member 372749928-Jul-10 7:21
Member 372749928-Jul-10 7:21 
GeneralRe: Problem with Send Keys to background process Pin
Covean28-Jul-10 22:25
Covean28-Jul-10 22:25 
If you understand C/C++ here is an old example where I send Ctrl+f to some window (hWnd).

HWND hOldForegroundWindow = ::GetForegroundWindow();
::SetForegroundWindow(hWnd);
::ShowWindow(hWnd, SW_MAXIMIZE);
::SetFocus(hWnd);
Sleep(100);

INPUT inputs[2];
memset(&inputs[0], 0, sizeof(INPUT) * 2);
inputs[0].type = INPUT_KEYBOARD;
inputs[0].ki.wVk = VK_CONTROL;
inputs[1].type = INPUT_KEYBOARD;
inputs[1].ki.wVk = 70; // f

::SendInput(2, &inputs[0], sizeof(INPUT));

Sleep(100);

inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
inputs[1].ki.dwFlags = KEYEVENTF_KEYUP;
::SendInput(2, &inputs[0], sizeof(INPUT));


Maybe in your case you just have to wait some short period of time and send a KEYUP event.
Greetings
Covean

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.