amitairoa Posted September 29, 2008 Posted September 29, 2008 Hi! I have a project, in which a user can click a button- even if he's using different program- that button in the program will simulate a keyboard shortcut and and use it in that current program he's using. I wanted to ask how to do this: How do I simulate a keyboard shortcut in Expression Blend/WPF, and how do I simulate that key in another application-for instance if he's using Microsoft word- by pressing a button in my program- that button does CTRL +Z-and that works as undo in Word. How do I do this? I'd appreciate any help. Thanks! Quote
Administrators PlausiblyDamp Posted September 30, 2008 Administrators Posted September 30, 2008 Have you tried just using the SendInput API? http://www.pinvoke.net/search.aspx?search=sendinput&namespace=[All] might be of some use. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.