Hi all,
I recently started my development in MAC OS. My aim is to generate keyboard events programatically, and I came across this method CGEventCreateKeyboardEvent and CGPostToPSN.....My doubt here is there is flag in CGEventCreateKeyboardEvent method, which indicates key down or key up...........In our keyboards if I press and hold down a key, it keeps on producing the event.. I thought even this API does the samething on setting the flag TRUE..but it isn't the case...Any pointers on this!!!!
I recently started my development in MAC OS. My aim is to generate keyboard events programatically, and I came across this method CGEventCreateKeyboardEvent and CGPostToPSN.....My doubt here is there is flag in CGEventCreateKeyboardEvent method, which indicates key down or key up...........In our keyboards if I press and hold down a key, it keeps on producing the event.. I thought even this API does the samething on setting the flag TRUE..but it isn't the case...Any pointers on this!!!!