Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with Code Pin
Kevin McFarlane23-Sep-06 5:38
Kevin McFarlane23-Sep-06 5:38 
QuestionTyped & Non-Typed DataSet Pin
Mohammed Amine23-Sep-06 3:15
Mohammed Amine23-Sep-06 3:15 
AnswerRe: Typed & Non-Typed DataSet Pin
Imran Adam24-Sep-06 5:38
Imran Adam24-Sep-06 5:38 
QuestionHandling redirects with HttpWebResponse Pin
derCola23-Sep-06 2:20
derCola23-Sep-06 2:20 
Questionkeys Pin
rzvme23-Sep-06 1:22
rzvme23-Sep-06 1:22 
AnswerRe: keys Pin
seq-23-Sep-06 6:50
seq-23-Sep-06 6:50 
GeneralRe: keys Pin
rzvme23-Sep-06 22:52
rzvme23-Sep-06 22:52 
GeneralRe: keys Pin
rzvme24-Sep-06 4:03
rzvme24-Sep-06 4:03 
i added a few code lines to press enter before and escape after pressing ctrl+g .right now my code looks like this. The ctrl+g part of the code works fine, but the rest doesn't work at all. what's wrong?

// to press enter
structInput.ki.wVk = (ushort)NativeWIN32.VK.RETURN;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

// Key up the actual key-code
structInput.ki.dwFlags = NativeWIN32.KEYEVENTF_KEYUP;
structInput.ki.wVk = (ushort)NativeWIN32.VK.RETURN;//vk;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));


//Press control Key
structInput.ki.wVk = (ushort)NativeWIN32.VK.CONTROL;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

// Key down the actual key-code
structInput.ki.wVk = (ushort)NativeWIN32.VK.G;//vk;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

// Key up the actual key-code
structInput.ki.dwFlags = NativeWIN32.KEYEVENTF_KEYUP;
structInput.ki.wVk = (ushort)NativeWIN32.VK.G;//vk;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

//Keyup control
structInput.ki.dwFlags = NativeWIN32.KEYEVENTF_KEYUP;
structInput.ki.wVk = (ushort)NativeWIN32.VK.CONTROL;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

// to press escape
structInput.ki.wVk = (ushort)NativeWIN32.VK.ESCAPE;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));

// Key up the actual key-code
structInput.ki.dwFlags = NativeWIN32.KEYEVENTF_KEYUP;
structInput.ki.wVk = (ushort)NativeWIN32.VK.ESCAPE;//vk;
intReturn = NativeWIN32.SendInput((uint)1, ref structInput, Marshal.SizeOf(structInput));


rzvme

Questionhow to print form in vs2005 ? Pin
hdv21223-Sep-06 1:03
hdv21223-Sep-06 1:03 
AnswerRe: how to print form in vs2005 ? Pin
Green Fuze23-Sep-06 6:03
Green Fuze23-Sep-06 6:03 
QuestionProperties.Settings - does it work ? Pin
Christian Graus23-Sep-06 0:38
protectorChristian Graus23-Sep-06 0:38 
AnswerRe: Properties.Settings - does it work ? Pin
S. Senthil Kumar23-Sep-06 1:57
S. Senthil Kumar23-Sep-06 1:57 
GeneralRe: Properties.Settings - does it work ? Pin
Christian Graus23-Sep-06 18:54
protectorChristian Graus23-Sep-06 18:54 
GeneralRe: Properties.Settings - does it work ? Pin
S. Senthil Kumar24-Sep-06 19:05
S. Senthil Kumar24-Sep-06 19:05 
QuestionVoice capturing Pin
AB777123-Sep-06 0:11
AB777123-Sep-06 0:11 
QuestionQuestion about data transfer through tcp. Pin
Green Fuze22-Sep-06 23:23
Green Fuze22-Sep-06 23:23 
AnswerRe: Question about data transfer through tcp. Pin
Syed Mujtaba Hassan22-Sep-06 23:42
Syed Mujtaba Hassan22-Sep-06 23:42 
AnswerRe: Question about data transfer through tcp. Pin
Mike Dimmick23-Sep-06 1:05
Mike Dimmick23-Sep-06 1:05 
QuestionTo use C++ DLL in C#. Pin
Syed Mujtaba Hassan22-Sep-06 23:09
Syed Mujtaba Hassan22-Sep-06 23:09 
AnswerRe: To use C++ DLL in C#. Pin
Christian Graus23-Sep-06 1:11
protectorChristian Graus23-Sep-06 1:11 
GeneralRe: To use C++ DLL in C#. Pin
Syed Mujtaba Hassan24-Sep-06 23:59
Syed Mujtaba Hassan24-Sep-06 23:59 
GeneralRe: To use C++ DLL in C#. Pin
Christian Graus25-Sep-06 0:20
protectorChristian Graus25-Sep-06 0:20 
GeneralRe: To use C++ DLL in C#. Pin
Syed Mujtaba Hassan25-Sep-06 19:30
Syed Mujtaba Hassan25-Sep-06 19:30 
GeneralRe: To use C++ DLL in C#. Pin
Christian Graus25-Sep-06 19:36
protectorChristian Graus25-Sep-06 19:36 
GeneralRe: To use C++ DLL in C#. Pin
Syed Mujtaba Hassan27-Sep-06 22:56
Syed Mujtaba Hassan27-Sep-06 22:56 

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.