Jump to content


Photo

Direct-Help


  • Please log in to reply
2 replies to this topic

#1 Invero

Invero

    GMC Member

  • GMC Member
  • 199 posts

Posted 15 March 2012 - 11:38 AM

Can anyone tell me what I am doing wrong here:
keyboard_string=keyboard_check_pressed(vk_anykey)

I want the keyboard_string to be active even if the window is not active. ~ Thank in advance once again.
  • 0

#2 xshortguy

xshortguy

    GMC Member

  • Global Moderators
  • 4188 posts
  • Version:GM:Studio

Posted 15 March 2012 - 11:54 AM

keyboard_check_pressed returns true or false [1 or 0] depending on the specified key's state when the keyboard was last polled for changes.

You're setting this to the variable that stores the last 1024 keystrokes. In doing so, you are deleting the previous entries and setting it to a value that you don't want.
  • 0

#3 Invero

Invero

    GMC Member

  • GMC Member
  • 199 posts

Posted 15 March 2012 - 11:58 AM

keyboard_check_pressed returns true or false [1 or 0] depending on the specified key's state when the keyboard was last polled for changes.

You're setting this to the variable that stores the last 1024 keystrokes. In doing so, you are deleting the previous entries and setting it to a value that you don't want.


If thats the case how would I go abouts making it grab the Key_string even if window is not active?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users