0

Hi,

I want to know how to send keys like ALT, Shift, Ctrl, Entre, etc. with the My.Computer.SendKeys() function.

Also, I need a code with which i can send 2 keys together like Ctrl+C

If its not possible with SendKeys(), please suggest some other function to acheive this.

Thank you...

Edited by sharunks007: n/a

4
Contributors
4
Replies
44
Views
6 Years
Discussion Span
Last Post by Cardine.Mpisane
Featured Replies
  • 4

    on any event : [CODE]SendKeys.Send("{ENTER}") 'for enter SendKeys.Send("{%}") 'for Alt SendKeys.Send("{^}") 'for Ctrl SendKeys.Send("{+}") 'for shift[/CODE] [CODE]' Combination SendKeys.Send("^(c)") 'for Ctrl-C[/CODE] [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx"] More information, go to msdn online[/URL] anyway you posting on wrong section..this section for vb 4,5,6 not for vb.net section. Read More

0

Ctrl, Alt, Shift are not 'keys', they are modifiers to keys. C is a key, value is 67. Ctrl-C is also a key, value 3.

Look on Google for information about Sendkeys

4

on any event :

SendKeys.Send("{ENTER}") 'for enter
SendKeys.Send("{%}") 'for Alt
SendKeys.Send("{^}") 'for Ctrl
SendKeys.Send("{+}") 'for shift
' Combination
SendKeys.Send("^(c)") 'for Ctrl-C


More information, go to msdn online

anyway you posting on wrong section..this section for vb 4,5,6 not for vb.net section.

Edited by Jx_Man: add a msdn link

Votes + Comments
Yes. that way
good
0

on any event :

SendKeys.Send("{ENTER}") 'for enter
SendKeys.Send("{%}") 'for Alt
SendKeys.Send("{^}") 'for Ctrl
SendKeys.Send("{+}") 'for shift
' Combination
SendKeys.Send("^(c)") 'for Ctrl-C


More information, go to msdn online

anyway you posting on wrong section..this section for vb 4,5,6 not for vb.net section.

Thanks a lot!!!

0

hi i need to know how to send key. in a sence of, i create an application, with media player controls, so if i cleck next on my application, automaticaly next is clicked on the windows media player on winamp, same for other keys, please help.. cardine.m@gmail.com

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.