Click here to Skip to main content
15,791,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm porting a .net app to OSX using mono and things were going great. But right now I'm struggling with simulating keystrokes on OSX.

The app is a console application that uses a barcode scanner. The scanned barcode is used to lookup information about products which is inputted into the focused text field on the active application. This works great on .net (using Win32 SendInput). This approach is obviously not working on mono for mac.

I have not been able to find a working solution for mono but I have found one promising solution. This solution is not in a working state and requires some P/Invoking which I'm new to since I haven't worked with mono for mac before.

Can somebody please help me out?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900