|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
modify the keyboard queueHi
I need to be able to modify the keyboard queue and I have no idea how to do it. I have a windows app (C#) that should login to another application when pressing a login button. I have no access to the other application so I would like to add the username and password to the keyboard queu and login to the third part application that way. Is this possible to do? Does anyone knows where to find some information about this area? Thanks a lot Julia Hello Julia:
Don't understand exactly what you wanna do, but i supose you want to manipulate the keyboard at a low level. I sugest you to search the web for a keyboard hook. There are a couple of good examples in www.codeproject.com Maybe it's in C, you'll have to wrap the dll to be called from c# Good luck. Oscar Acosta Julia wrote: Show quote > Hi > > I need to be able to modify the keyboard queue and I have no idea how to do > it. I have a windows app (C#) that should login to another application when > pressing a login button. I have no access to the other application so I would > like to add the username and password to the keyboard queu and login to the > third part application that way. > > Is this possible to do? Does anyone knows where to find some information > about this area? > > Thanks a lot > Julia "Julia" wrote: It's not possible to modify the keyboard queue per se. But it is possible > I need to be able to modify the keyboard queue and I have no idea how to do > it. I have a windows app (C#) that should login to another application when > pressing a login button. I have no access to the other application so I would > like to add the username and password to the keyboard queu and login to the > third part application that way. to suppress key events that you don't want to occur, and send your own key events instead, which should have the same effect. But from your description it sounds like you don't actually want to modify the keyboard queue, but rather you want to remote-control another application by sending it key events. You can use the SendKeys method to do this. We also offer a .NET component that handles everything keyboard-related for you: http://www.mini-tools.com/goto/input You are fast for sales man!!!
Mini-Tools Timm wrote: Show quote > "Julia" wrote: > > > I need to be able to modify the keyboard queue and I have no idea how to do > > it. I have a windows app (C#) that should login to another application when > > pressing a login button. I have no access to the other application so I would > > like to add the username and password to the keyboard queu and login to the > > third part application that way. > > It's not possible to modify the keyboard queue per se. But it is possible > to suppress key events that you don't want to occur, and send your own key > events instead, which should have the same effect. > > But from your description it sounds like you don't actually want to modify > the keyboard queue, but rather you want to remote-control another application > by sending it key events. You can use the SendKeys method to do this. We > also offer a .NET component that handles everything keyboard-related for you: > > http://www.mini-tools.com/goto/input > > -- > Timm Martin > Mini-Tools > .NET Components and Windows Software > http://www.mini-tools.com |
|||||||||||||||||||||||