sciguyryan
May 16th, 2005, 03:37 PM
I'm shure I have seen a few people ask for this before on other forums so, O thought I would post this here.
Description: Its a make-shift design to push the Start button:
Creator: Ryan Jones (Sciguyryan, Me)
code:
Private Declare Sub keybd_event Lib "user32.dll" ( _
ByVal bVk As Byte, _
ByVal bScan As Byte, _
ByVal dwFlags As Long, _
ByVal dwExtraInfo As Long)
Public Const KEYEVENTF_KEYUP = &H2
Public Const VK_LWIN = &H5B
And then as the call do the following:
keybd_event VK_LWIN, 0, 0, 0
keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0
Cheers and hope that helps someone, simple I know... ;)
Cheers,
RyanJ
Description: Its a make-shift design to push the Start button:
Creator: Ryan Jones (Sciguyryan, Me)
code:
Private Declare Sub keybd_event Lib "user32.dll" ( _
ByVal bVk As Byte, _
ByVal bScan As Byte, _
ByVal dwFlags As Long, _
ByVal dwExtraInfo As Long)
Public Const KEYEVENTF_KEYUP = &H2
Public Const VK_LWIN = &H5B
And then as the call do the following:
keybd_event VK_LWIN, 0, 0, 0
keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0
Cheers and hope that helps someone, simple I know... ;)
Cheers,
RyanJ