is there a way to use special characters and sendkeys? if not, is there something i can do that is like sendkeys but allows special characters.
Printable View
is there a way to use special characters and sendkeys? if not, is there something i can do that is like sendkeys but allows special characters.
Please search before positng:
http://msdn2.microsoft.com/en-us/lib...ys(VS.80).aspx
Quote:
Originally Posted by eyeRmonkey
that doesnt allow special characters. i dont mean f8 and {enter} and such i mean like the alt + #'s stuff(not all allowed).
If you had read the page, you would seen that you nedd to put + and # inside brackets like so:
VB Code:
SendKeys.Send("{+}")
but i dont know the alt codes of the special characters.Quote:
Originally Posted by eyeRmonkey
Quote:
Originally Posted by high6
any help?
All of the "alt codes" are listed on that link. Why don't you take a moment and read through it?
Hi,Quote:
Originally Posted by high6
Here's the link with the Keys Enumaration;
http://msdn.microsoft.com/library/de...classtopic.asp
Wkr,
sparrow1
Quote:
Originally Posted by eyeRmonkey
but it shows up as a box and it needs to be the exact thing for it to work.
is there a way to just be able to copy the box and use it.
Hi,Quote:
Originally Posted by high6
Did you see my link in post 8, you can find a list with all the Keys enumeration.
About your special Characters you can use something like this, it's with a RichTextBox:
VB Code:
Private Sub RichTextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress Dim asciiInt As Integer = Asc(e.KeyChar) Select Case asciiInt Case 48 To 57 'Numbers Call Beep() e.Handled = True Case 8 'BackSpace Call Beep() e.Handled = True Case 32 'Space Call Beep() e.Handled = True Case 97 To 122 'Letters Call Beep() e.Handled = True Case 65 To 90 'Capital Letters Call Beep() e.Handled = True Case 45 'Dashes Call Beep() e.Handled = True Case 59 'semi-colon Call Beep() e.Handled = True Case Else 'everything else... e.Handled = False End Select End Sub
Hope it helps you in the right direction.
Wkr,
sparrow1
this doesnt help... i need to be able to send the special char from copy and pasting into the app and sending it like sendkeys.