Re: SendKeys under Windows Vista with VB3
- From: "Mike Williams" <mike@xxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Oct 2007 14:19:13 +0100
"jvsp" <vinisanp@xxxxxxxxx> wrote in message news:EEE63F6C-8E48-4125-ACA4-27495B525B06@xxxxxxxxxxxxxxxx
Hi Mike, thanks for your answer. I tried use your code
on vb3 but i can't it work on vb3. On vb3 doesn't exists
the type "Byte".
So what happens if you change the declaration to use Integers instead of bytes? In other words, change this:
Private Declare Sub keybd_event Lib "user32" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
to this:
Private Declare Sub keybd_event Lib "user32" _
(ByVal bVk As Integer, ByVal bScan As Integer, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
What happens if you run the code after making those changes? I assume that VB3 can use Integers (two byte variables) and Longs (four byte variables)? If not, what kind of variables can it use?
Mike
.
- Follow-Ups:
- Re: SendKeys under Windows Vista with VB3
- From: Randy Birch
- Re: SendKeys under Windows Vista with VB3
- References:
- Re: SendKeys under Windows Vista with VB3
- From: Mike Williams
- Re: SendKeys under Windows Vista with VB3
- From: jvsp
- Re: SendKeys under Windows Vista with VB3
- Prev by Date: Re: CONNECT MY VB PROGRAM WITH SQL
- Next by Date: Re: VB6 LISTBOX problem
- Previous by thread: Re: SendKeys under Windows Vista with VB3
- Next by thread: Re: SendKeys under Windows Vista with VB3
- Index(es):
Relevant Pages
|