GetKeyBoardState Function

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Greetings,
I am working on a function to see if Ctrl + S is pressed. Useing the
GetKeyboardState Function is it possible to retirve this information? Also
What I have written crashes excel any ideas what i'm missing?


Dim anArray
Dim Result As Long

On Error GoTo HandleError

anArray = Array(VK_CONTROL, VK_S)

Result = GetKeyboardState(anArray(0))
 
Back
Top