6evil9 Posted March 1, 2009 Share Posted March 1, 2009 hi everyone i am trying to replicate Autoit function send("{UP down}") and send("{UP up}") in C# Can someone tell me how can this be done? (C++ is good as well) i am using SendKeys.Send function but can't find the way to send hold down a key. Cheers Link to comment Share on other sites More sharing options...
Authenticity Posted March 1, 2009 Share Posted March 1, 2009 Use the "AutoItX3.dll" library's AU3_Send function, the dll is located in "..\AutoItInstallation\AutoItX\StandardDLL\VC6\Example" Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 1, 2009 Share Posted March 1, 2009 You could use SendInput (a native function) and send a key down, sleep, then key up. Link to comment Share on other sites More sharing options...
6evil9 Posted March 1, 2009 Author Share Posted March 1, 2009 Hi tthere yup, got it through dll just thought there could be other way... anyway this will do as well thx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now