-
question in hotkey ??
pease be with you
hi
there is a big problem !!!
i get a api code called " RegisterHotKey " , in the consts there is :
Code:
Private Const MOD_ALT = &H1
Private Const MOD_CONTROL = &H2
Private Const MOD_SHIFT = &H4
me question is : ??
i want to know what this means ( " &H1 " " &H2 " " &H4 " ) and it's name ??
if this characters mean a thing in a " keyboard " plz write to
all the keyboard keys in this case
thanks
-
those are numbers in hex.
their values are 1 2 and 4
the following does the same thing.
generally in api's hex values are used especially for large numbers
and using numbers that represent the power of 2 allows OR and AND statements to work nicely
Private Const MOD_ALT = 1
Private Const MOD_CONTROL = 2
Private Const MOD_SHIFT = 4