[2005] sendkeys & special characters-VBForums
Results 1 to 11 of 11

Thread: [2005] sendkeys & special characters

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2005] sendkeys & special characters

    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.

  2. #2
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: [2005] sendkeys & special characters

    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] sendkeys & special characters

    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).

  4. #4
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: [2005] sendkeys & special characters

    If you had read the page, you would seen that you nedd to put + and # inside brackets like so:
    VB Code:
    1. SendKeys.Send("{+}")
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] sendkeys & special characters

    Quote Originally Posted by eyeRmonkey
    If you had read the page, you would seen that you nedd to put + and # inside brackets like so:
    VB Code:
    1. SendKeys.Send("{+}")
    but i dont know the alt codes of the special characters.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] sendkeys & special characters

    Quote Originally Posted by high6
    but i dont know the alt codes of the special characters.

    any help?

  7. #7
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: [2005] sendkeys & special characters

    All of the "alt codes" are listed on that link. Why don't you take a moment and read through it?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  8. #8
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: [2005] sendkeys & special characters

    Quote Originally Posted by high6
    any help?
    Hi,

    Here's the link with the Keys Enumaration;

    http://msdn.microsoft.com/library/de...classtopic.asp

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] sendkeys & special characters

    Quote Originally Posted by eyeRmonkey
    All of the "alt codes" are listed on that link. Why don't you take a moment and read through it?

    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.

  10. #10
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: [2005] sendkeys & special characters

    Quote Originally Posted by high6
    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.
    Hi,

    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:
    1. Private Sub RichTextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress
    2.         Dim asciiInt As Integer = Asc(e.KeyChar)
    3.  
    4.         Select Case asciiInt
    5.             Case 48 To 57 'Numbers
    6.                 Call Beep()
    7.                 e.Handled = True
    8.             Case 8 'BackSpace
    9.                 Call Beep()
    10.                 e.Handled = True
    11.             Case 32 'Space
    12.                 Call Beep()
    13.                 e.Handled = True
    14.             Case 97 To 122 'Letters
    15.                 Call Beep()
    16.                 e.Handled = True
    17.             Case 65 To 90 'Capital Letters
    18.                 Call Beep()
    19.                 e.Handled = True
    20.             Case 45 'Dashes
    21.                 Call Beep()
    22.                 e.Handled = True
    23.             Case 59 'semi-colon
    24.                 Call Beep()
    25.                 e.Handled = True
    26.            
    27.             Case Else 'everything else...
    28.                 e.Handled = False
    29.         End Select
    30.  
    31.     End Sub

    Hope it helps you in the right direction.

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] sendkeys & special characters

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.