• Visit Rebornbuddy
  • How to send specific keystrokes?

    Discussion in 'Archives' started by Praline, Aug 28, 2015.

    1. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      I want a profile to send the keys "alt F" to the bot at timed intervals. How do I do that? Help please. :)
       
    2. wired203

      wired203 Community Developer

      Joined:
      Jan 22, 2015
      Messages:
      391
      Likes Received:
      1
      Trophy Points:
      18
      Profile can't do that, routine would. I added into default combat the ESC keypress to end rest I ripped from joes. Look for my updated rest.cs in the default combat thread, then look at the original and compare. It actually required quite a bit of work just to do a keypress.
       
    3. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      Thank you, wired203. I did take a look. Was hoping to not do it in the routine, but its either routine or a plugin then? Ugh :)
       
    4. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      You can Always do a plugin that sends the key every few seconds.
      As base you can use the plugin openlockboxes that comes with the bot.
      Copy it over in the plugin and it should run
       
    5. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      Thank you dear Cryo. Now all I need is someone to actually DO it for me! hahaha
      I am so way over my head with all this - all I can do is look at wired's rest.cs and openlockboxes, but what I see is well.. it might as well be written is Russian or Greek. :p
       
    6. wired203

      wired203 Community Developer

      Joined:
      Jan 22, 2015
      Messages:
      391
      Likes Received:
      1
      Trophy Points:
      18
      You need to compare my rest.cs verses the default combat rest.cs to see the changes I made. That will get you in the right direction.
       
    7. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      True True...
      What is the reason for This? Rocket boots or what?
       
    8. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      Oh no, nothing even that fancy. I use(d) a Razer mouse and kb, and have keys mapped to it (alt F being the most important one for me). Problem is that is seems BW does not want to play nicely with my Razer software, and I have to disable it when trying to run BW and was hoping to find an easy way to send keystrokes to BW. Did not want to do it via combat routine, because well...er..<think up any excuse for being code-impaired> :)
       
    9. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      Oh, its getting me in a direction alright...just perhaps not the right one! <grabs another G&T) <hic>
      Hahah thx for trying to help wired! I am just too stupid. :(
       
    10. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      You did this:
      if (Me.IsCasting) SendMessage(SWTORHWnd, (int)0x100, (IntPtr)(char)0x1b, (IntPtr)0);

      So...er..(char)0x1b would be the ESC key? and if I replace that with (char)0x12 it would be the ALT key? WTH is (int)0x100 and (IntPtr) etc etc? And the F key would be 0x46. Where do I put that? And after all that, what direction would my BW go? lol
       

    Share This Page