Results 1 to 4 of 4
  1. #1
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    221
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed

    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,


  2. #2
    ERGaergaergaergaergearg's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    172
    Reputation
    19
    Thanks
    30
    My Mood
    Amazed
    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.
    Attached Thumbnails Attached Thumbnails
    kECkllf.png  

    Last edited by ERGaergaergaergaergearg; 08-01-2014 at 07:19 PM. Reason: Failed a bit with picture :)

  3. The Following 2 Users Say Thank You to ERGaergaergaergaergearg For This Useful Post:

    Fl1ck (08-10-2014),znoen (08-07-2014)

  4. #3
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    221
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Quote Originally Posted by gresan6 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,

  5. #4
    Fl1ck's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    6
    Problem solved. Thanks to @gresan6
    JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM JHEM AAAAAAAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLTTTTTT TTTTTTTTTTTTTTTTTT

Similar Threads

  1. [Help] GetAsyncKeyState(??) = X??
    By scriptkiddy in forum C++/C Programming
    Replies: 2
    Last Post: 10-12-2009, 10:59 AM
  2. 3rd..input appreciated.
    By cole32547 in forum Showroom
    Replies: 6
    Last Post: 09-25-2009, 01:47 AM
  3. how do i put an input as a directory?
    By reyes94x in forum Visual Basic Programming
    Replies: 0
    Last Post: 07-13-2009, 01:20 AM
  4. Where do you input the serial number to play COD 4 online
    By scruffy69 in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 1
    Last Post: 08-23-2008, 09:15 PM
  5. TuneTrippin' - I need input.
    By Mexiforce in forum General
    Replies: 42
    Last Post: 05-10-2008, 11:10 AM

Tags for this Thread