Ok, nice easy one for you VB guru's I am starting into VB and find the best way to lean is to read code as well as books, anyway I came across some code that had the constants as shown below.
I understand that the VK_NUMLOCK = &H90 is equivalent to VK_NUMLOCK = 144 and this is the value associated to the Num Lock key but I am not sure what the value does within the code, i.e. does it set Num Lock to on?
Const VK_NUMLOCK = &H90
Const KEYEVENTF_EXTENDEDKEY = &H1
Const KEYEVENTF_KEYUP = &H2
Further into the code is the following line:
keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0
I understand that this changes the value but again to what?
It would be great if somebody could give me an explanation of what the other two values are:
EXTENDEDKEY and KEYUP
and is there a link that gives a full list of the &H1 values and the keys they are associated with.