What is the keybd constand for the left mouse button?
All the documentation I have been able to find says its 0x01 wich should be &H1 right? Yet, it dosen't seem correct.
And while im at it:
I have a multi button mouse (4 normal buttons and then a scroll weel that has 3 more in it). What are the keybd constants for those?
(yes, I have looked around quite a bit. Seems one of the hardest things for me to find a 100% complete and correct source on....)Code:Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Const MYKEYEVENTF_KEYUP = &H2 Private Const MYVK_LBUTTON = &H1 '''''''''''''''''''''''''''''''''''''''''''''' keybd_event MYVK_LBUTTON, 0, 0, 0 Sleep 500 keybd_event MYVK_LBUTTON, 0, MYKEYEVENTF_KEYUP, 0




Reply With Quote