| | |
How to send left/right shift key?
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
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#
Views: 2241 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gcd gdi+ http httpwebrequest image index input install java label list listbox listener login math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion prime programming radians regex remote remoting resource saving serialization server sleep socket sql statistics stream string tcp text textbox time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





