Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
fozzeptic

Problem in sending key inputs

Recommended Posts

Hello,

 

I have been trying to make a code for a game which will help me to control the character by keyboard keys. My code is pretty simple as follows;

 

vkeydown(65);

wait(1000);

vkeyup(65);

 

When i had tried it in the game nothing happened. Then tried to click at the message board which you can activate texting cursor, and run the script again and i saw that only one character of "A" was typed. Therefore, the key hasnt been pressed. I supposed that maybe the game was igonering the key inputs and tried the same thing with notepad. But the same thing happened again. I got only one "A" as output.

 

How to solve this problem? Thanks in advance.

Share this post


Link to post
Share on other sites

Yea as far as I know there are no functions implemented that will allow you to hold a key down to get the repeated key effect. You may consider just adding an arbitrary and random amount of repeats, wait loop, or something.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...