SolvedGetAsyncKeyState Input

Posts 1–4 of 4 · Page 1 of 1
GetAsyncKeyState Input
Hi,

I have a problem. I made a system that imports config settings from a file into to strings. The config contains keys like: "VK_CONTROL".

Normaly you use this code
Code:
if(GetAsyncKeyState(VK_CONTROL) &1)
Now my code needs to be
Code:
String Key1="VK_CONTROL"
if(GetAsyncKeyState(Key1) &1)
But this returns an error.
Someone knows how to make this work?

Tnx!

Znoen,
The Virtual Key Codes is an "Interger" and not a "String"



Notice the "(int vKey)"?
That is a great way or using VS as your advantage.
kECkllf.png4 KB · 6 downloads
Quote Originally Posted by ERGaergaergaergaergearg View Post
The Virtual Key Codes is an "Interger" and not a "String"



Notice the "(int vKey)"?
That is a great way or using VS as your advantage.
Thank you! Never noticed that it was an int. Thank you for replying!

Znoen,
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us