Re: SendKeys under Windows Vista with VB3

Tech-Archive recommends: Speed Up your PC by fixing your registry



"jvsp" <vinisanp@xxxxxxxxx> wrote in message news:EEE63F6C-8E48-4125-ACA4-27495B525B06@xxxxxxxxxxxxxxxx

I Would like simulate the command Below
when user press Enter Key
SendKeys "{TAB"}

It appears that you won't be able to use any API routines in Vista from VB3. I'm not sure what you are doing, but will the following be any help at all?

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Text2.SetFocus
End If
End Sub

Mike


.



Relevant Pages

  • Re: SendKeys Replacement
    ... but I don't remember if a solution was given to replace the sendkeys. ... Select Case KeyAscii ... (ByVal hwnd As Long, _ ... Private Const WM_KEYDOWN As Long = &H100 ...
    (microsoft.public.vb.general.discussion)
  • Re: SendKeys Replacement
    ... control, usually a TextBox, with the desired action being to SendKeys a ... Select Case KeyAscii ... wanting to switch to it, rather than start a new instance. ... StartupScreen.Caption = "Duplicate Instance" ...
    (microsoft.public.vb.general.discussion)
  • RunTimeError 70 - Permission Denied
    ... I now have a system with VISTA installed and I was attempting to make a few modification to the program but I am running into an error situation that has me puzzled. ... Private Sub Form_KeyPress ... ' this procedure intercepts a return key press and makes it into a tab key ... If KeyAscii = vbKeyReturn Then ...
    (microsoft.public.vb.general.discussion)