|
-
Nov 16th, 2009, 06:30 PM
#1
Thread Starter
Lively Member
Key Stroke Help
I hope I am in the right forum. I was wondering anyone could help me make VB.NET 2008 Do the following Key stroke: Windows Key+Alt+Enter
Can Anyone Help Me? I am trying to get it to Open MCE.
Thanks Matchlighter
Last edited by Matchlighter; Nov 16th, 2009 at 06:43 PM.
-
Nov 16th, 2009, 06:59 PM
#2
Re: Key Stroke Help
Do you want this to happen only when your app has focus or any time?
-
Nov 16th, 2009, 07:09 PM
#3
Thread Starter
Lively Member
Re: Key Stroke Help
Anytime. I am trying to make my own MCE Remote with an Arduino Board and VB.NET. VB.NET being the interpreter and Computer side command executor
-
Nov 16th, 2009, 07:25 PM
#4
Re: Key Stroke Help
You'll need to use the RegisterHotkey API, which tells Windows to notify your app whenever a specific key combination is pressed. There are examples about, including one in the VB.NET CodeBank forum I believe, so you should check them out.
-
Nov 16th, 2009, 07:28 PM
#5
Thread Starter
Lively Member
Re: Key Stroke Help
I'm not sure you understand. I don't need VB.NET to read the strokes. I need it to perform the strokes.
-
Nov 16th, 2009, 07:50 PM
#6
Re: Key Stroke Help
Ah, sorry. In that case you might want to look at the SendInput API. In theory you could use SendKeys.Send but I'm not sure that that supports the Windows key and it does have some limitations too.
-
Nov 16th, 2009, 09:46 PM
#7
Thread Starter
Lively Member
Re: Key Stroke Help
How Do I use SendInput API? I'm sorry, but I'm really new to VB.NET.
-
Nov 16th, 2009, 09:54 PM
#8
Re: Key Stroke Help
I've never used it myself. If I wanted to know how I'd search for existing examples. You can do the same. You can always post back if you have trouble but when someone gives you key words, the first thing to do is search.
-
Nov 16th, 2009, 09:59 PM
#9
Thread Starter
Lively Member
Re: Key Stroke Help
I searched it but didn't understand it. Do you know if there is an easy way to start an application? And Can SendInput Send Its input directly into the system? From what i found it looks like it only does other programs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|