jim ruxton a écrit : > type patches. It takes text and converts a string to the ascii values. I > had to use upper case characters since your external only accepts upper > case ascii values since that is how the key codes are defined. I didn't > want to get fancy yet and use shift etc. I think it would be great to > create an external that takes ascii characters directly. I think you can > then use vkkeyscan to convert to the key codes which your external > takes. >> Maybe it would have been better to use SendInput() rather than >> kbd_event(), but I haven't been able to figure out how to use the first. > Have you looked at sendkeys . This could simpliy things as well. > http://msdn2.microsoft.com/en-us/library/8c6yea83.aspx
This method looks far better, thank you, I'll try to use it... > I could work with either. I wonder is there is a way to direct the > keypress to the desired window (program) . Currently the cursur has to > be in the window where you want to recieve keypresses. Maybe using the > SetFocus http://msdn2.microsoft.com/en-us/library/ms646312(VS.85).aspx > or SetActiveWindow function you could direct the keyboard input to the > desired application? I can see that the feature request is growing : ) . SetFocus() is interesting, and would be used with a bunch of other methods like GetWindow(), GetChildWindows(), for choosing which windows will be focused. Now I'd be interested to know how to do it with X11. _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
