Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: Window Service problem Pin
Ashfield21-Jun-08 7:32
Ashfield21-Jun-08 7:32 
GeneralRe: Window Service problem Pin
Yulianto.22-Jun-08 15:24
Yulianto.22-Jun-08 15:24 
QuestionSending keys to the active windows - almost there Pin
Dirso21-Jun-08 5:00
Dirso21-Jun-08 5:00 
AnswerRe: Sending keys to the active windows - almost there Pin
mav.northwind22-Jun-08 19:01
mav.northwind22-Jun-08 19:01 
GeneralRe: Sending keys to the active windows - almost there Pin
Dirso23-Jun-08 13:38
Dirso23-Jun-08 13:38 
GeneralRe: Sending keys to the active windows - almost there Pin
mav.northwind25-Jun-08 9:25
mav.northwind25-Jun-08 9:25 
GeneralRe: Sending keys to the active windows - almost there Pin
Dirso25-Jun-08 10:39
Dirso25-Jun-08 10:39 
GeneralRe: Sending keys to the active windows - almost there Pin
mav.northwind25-Jun-08 19:17
mav.northwind25-Jun-08 19:17 
Hi!
The basic call to keybd_event seems to be OK now, the problem lies in the the way you try to convert your keys to bytes. For example, if you want to send "a" using keybd_event, you'll have to give 41 as virtual key code (there's a complete list of VK codes on MSDN).
But you're using 97 (the ASCII code for "a"), so this cannot work.

Btw. why do you insist on using keybd_event? I suggested using SendKeys.SendWait() a while ago - did you try this?

Regards,
mav

--
Black holes are the places where God divided by 0...

GeneralRe: Sending keys to the active windows - almost there Pin
Dirso26-Jun-08 0:50
Dirso26-Jun-08 0:50 
QuestionToolStripItem visible problem Pin
Yulianto.21-Jun-08 4:56
Yulianto.21-Jun-08 4:56 
AnswerRe: ToolStripItem visible problem Pin
subai21-Jun-08 20:26
subai21-Jun-08 20:26 
QuestionAbstract classes hierarchy Pin
Metal7621-Jun-08 4:55
Metal7621-Jun-08 4:55 
AnswerRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:23
User 665821-Jun-08 5:23 
GeneralRe: Abstract classes hierarchy Pin
Metal7621-Jun-08 5:32
Metal7621-Jun-08 5:32 
GeneralRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:39
User 665821-Jun-08 5:39 
GeneralRe: Abstract classes hierarchy Pin
Mark Churchill21-Jun-08 22:02
Mark Churchill21-Jun-08 22:02 
AnswerRe: Abstract classes hierarchy Pin
Guffa21-Jun-08 5:45
Guffa21-Jun-08 5:45 
AnswerRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:48
User 665821-Jun-08 5:48 
GeneralRe: Abstract classes hierarchy Pin
Metal7621-Jun-08 8:51
Metal7621-Jun-08 8:51 
QuestionCrystal Report Performance Pin
Member 202517621-Jun-08 3:40
Member 202517621-Jun-08 3:40 
AnswerRe: Crystal Report Performance Pin
Paul Conrad21-Jun-08 3:46
professionalPaul Conrad21-Jun-08 3:46 
QuestionProduction Rules Pin
mymo_h21-Jun-08 3:29
mymo_h21-Jun-08 3:29 
AnswerRe: Production Rules Pin
Paul Conrad21-Jun-08 3:49
professionalPaul Conrad21-Jun-08 3:49 
GeneralRe: Production Rules Pin
mymo_h21-Jun-08 4:21
mymo_h21-Jun-08 4:21 
GeneralRe: Production Rules Pin
Paul Conrad21-Jun-08 4:39
professionalPaul Conrad21-Jun-08 4:39 

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.