• Visit Rebornbuddy
  • Looking for a way to read key pressed from the keyboard to execute the code

    Discussion in 'Community Developer Forum' started by nami69, Apr 27, 2014.

    1. nami69

      nami69 New Member

      Joined:
      Apr 27, 2014
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      Hello
      I am currently using Belphegor routine to manually move my characters and the bot does all the attack, combat routine.
      Instead of bot just doing combat routine automatically when the mobs are in kill radius, I am looking for the bot to attack when I only pressed a certain key.
      For example,
      If I pressed A or holding down A from the keyboard
      the bot does combat routine

      How do write a code to read key pressed/key down from the keyboard?
      How do I modify Belphegor rountine source code to accomplish my task?

      Any help would be greatly appreciated.
      I would be happy to donate any helpers. So if any one is interested in helping me to write a code, send me a private message.
      Thanks.
       
    2. kleinerMann

      kleinerMann Member

      Joined:
      May 27, 2013
      Messages:
      64
      Likes Received:
      1
      Trophy Points:
      8

    Share This Page