| | |
How to send left/right shift key?
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
So what if you can see the darkest side of me?
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal
•
•
Join Date: Apr 2008
Posts: 9
Reputation:
Solved Threads: 0
I tried keybd_event API function, but it doesn't work as expected! It can Not process Left or Right shift key correctly! This function only process Shift key. Take a look at this:
http://msdn.microsoft.com/en-us/libr...04(VS.85).aspx
Therefore, I tried to use SendInput function. But I couldn't! After that I found another note:
http://www.pinvoke.net/default.aspx/user32.SendInput
Now, Can anyone tell me how to send Left/Right Shift key?
http://msdn.microsoft.com/en-us/libr...04(VS.85).aspx
•
•
•
•
Windows NT/2000/XP/Vista:This function has been superseded. Use SendInput instead.
http://www.pinvoke.net/default.aspx/user32.SendInput
•
•
•
•
* VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys. * Used only as parameters to GetAsyncKeyState() and GetKeyState(). * No other API or message will distinguish left and right keys in this way. */
•
•
Join Date: Apr 2008
Posts: 9
Reputation:
Solved Threads: 0
My problem has been solved in MSDN C# general forum! You can refer to the following link:
http://social.msdn.microsoft.com/For...0-6d533def38a5
http://social.msdn.microsoft.com/For...0-6d533def38a5
![]() |
Similar Threads
- Saw this a while back - so thought I'd post it lol (IT Professionals' Lounge)
- Geeky Humor (Geeks' Lounge)
- Shortcuts (Windows tips 'n' tweaks)
- Unresponsive script (DaniWeb Community Feedback)
- Open Gl Programing Error (help)... (Game Development)
Other Threads in the C# Forum
- Previous Thread: Help with Balance
- Next Thread: read from exel file c#
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combobox control conversion csharp custom database databasesearch datagrid datagridview datagridviewcheckbox dataset datetime degrees development draganddrop drawing dynamiccreation encryption enum equation event excel file form format formatting forms function gdi+ httpwebrequest image index input install interface java label list listbox mandelbrot math mouse mouseclick mysql namevaluepairs operator path photoshop picturebox pixelinversion post powerpacks programming property radians regex remote remoting resource restore richtextbox server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation visualstudio wait webbrowser windows winforms working wpf xml





