• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Keypresser / Keyspammer / Plugin to press 1 Key

    Discussion in 'Honorbuddy Forum' started by lavi, Sep 29, 2012.

    1. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      Hi, any chance to get this http://www.thebuddyforum.com/archives/57660-keyspammer.html updated? I need that so much and I have no clue, what I have to change :/

      Code:
      using Styx.Helpers;
      using Styx.Plugins.PluginClass;
      using Styx.WoWInternals.WoWObjects;
      using Styx.WoWInternals;
      using Styx;
      using System.Threading;
      using System.Windows.Forms;
      using System;
      
      namespace joejoe317
      {
          public class Keyspammer : HBPlugin, IDisposable
          {
      	
      	private static Random random = new Random();
      
      
              public override void Pulse()
              {
                  try
                  {
      				while (Me.IsAlive)
      				{
                               for (int i = 0; i < 2; i++)
      						{
      							Styx.Helpers.KeyboardManager.PressKey((char)Keys.L);
      							Thread.Sleep(random.Next(30, 50));
               
      							Styx.Helpers.KeyboardManager.ReleaseKey((char)Keys.L);
      							Thread.Sleep(random.Next(250, 750));
      						}
      				} 
      			}
      			catch
      			{
      			}
      		}
      	public override string Name { get { return "Keyspammer"; } }
          public override string Author { get { return "joejoe317"; } }
          public override Version Version { get { return new Version(1, 0, 0); } }
          public override bool WantButton { get { return false; } }
          public override string ButtonText { get { return Version.ToString(); } }
          private static LocalPlayer Me { get { return ObjectManager.Me; } }
      	}
      }
       
    2. MadDog

      MadDog Well-Known Member

      Joined:
      Nov 5, 2011
      Messages:
      1,249
      Likes Received:
      38
      Trophy Points:
      48
      I think i have updated it, but i havent tested it
      Code:
      using Styx.Helpers;
      using Styx.WoWInternals.WoWObjects;
      using Styx.WoWInternals;
      using Styx;
      using System.Threading;
      using System;
      using Styx.Plugins;
      
      namespace joejoe317
      {
          public class Keyspammer : HBPlugin, IDisposable
          {
      
              private static Random random = new Random();
      
      
              public override void Pulse()
              {
                  try
                  {
                      while (Me.IsAlive)
                      {
                          for (int i = 0; i < 2; i++)
                          {
                              Styx.Helpers.KeyboardManager.PressKey((char)ConsoleKey.L);
                              Thread.Sleep(random.Next(30, 50));
      
                              Styx.Helpers.KeyboardManager.ReleaseKey((char)ConsoleKey.L);
                              Thread.Sleep(random.Next(250, 750));
                          }
                      }
                  }
                  catch
                  {
                  }
              }
              public override string Name { get { return "Keyspammer"; } }
              public override string Author { get { return "joejoe317"; } }
              public override Version Version { get { return new Version(1, 0, 0); } }
              public override bool WantButton { get { return false; } }
              public override string ButtonText { get { return Version.ToString(); } }
              private static LocalPlayer Me { get { return StyxWoW.Me; } }
          }
      }
       
    3. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      first...thank u for fast reply..

      it doesnt show "Keyspammer" in the plugin list to turn it on/or off
       
    4. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      !help
       
    5. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      still need this
       
    6. gonemental

      gonemental Member

      Joined:
      Nov 14, 2010
      Messages:
      295
      Likes Received:
      11
      Trophy Points:
      18
    7. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Need a HB solution too.
      Would be fine if some1 can Update the old Keyspammer Plugin :)
       
    8. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Thanks you.

      what is the Key now?

      I want to use 'x'

      PHP:
                          Styx.Helpers.KeyboardManager.KeyUpDown((char)Keys.X)
      PHP:
                          Styx.Helpers.KeyboardManager.KeyUpDown((x)Keys.D1)
      ?
       
    9. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      Styx.Helpers.KeyboardManager.KeyUpDown((char)Keys.X);
      Would press the X key once.

      Styx.Helpers.KeyboardManager.KeyUpDown((char)Keys.NumPad3);
      Would press the 3 on your number pad once.

      (char) just represents an object type (or class) in this context.
       
    10. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Okay thanks :)
       
    11. ammar

      ammar New Member

      Joined:
      Jan 15, 2010
      Messages:
      50
      Likes Received:
      0
      Trophy Points:
      0
      This doesnt work for me :< I took the original file keyspammer then took the new code and replaced old code.

      After that I made a new folder in the plugins and put that in it. I still don't see it in the plugins when I open up HB :( Im so desperate for this because I litterally mill thousands a day.

      I did a lot of research but I found nothing and im stuck with this horrible Auto script it which has to have the game open and cant surf while its milling or do anything else. I dont mind tiping for your efforts but if you can please post the exact .cs plugins document in case I'm doing something wrong and the key the plugin uses to initiate and stop the milling.

      Thanks in advance :)
       
    12. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Just put the file into the plugins folder - no subfolder here as before
       
    13. ammar

      ammar New Member

      Joined:
      Jan 15, 2010
      Messages:
      50
      Likes Received:
      0
      Trophy Points:
      0
      Doesnt work ;/ this is the error I get in HB
      "Compiler Error: c:\Users\qlo_0lp\Desktop\Hermen\Plugins\Key\Keyspammer.cs(2,20) : error CS0234: The type or namespace name 'PluginClass' does not exist in the namespace 'Styx.Plugins' (are you missing an assembly reference?)Compiler Error: c:\Users\qlo_0lp\Desktop\Hermen\Plugins\Key\Keyspammer.cs(12,31) : error CS0246: The type or namespace name 'HBPlugin' could not be found (are you missing a using directive or an assembly reference?)

      Put one file in a folder in plugins and another withouth a folder in plugins. Copied Phelon's updated keyspammer he placed on the first page and changed the Keydown from D1 to X. Mind attaching ur file for me? Id so much appreciate it :<
       
    14. xaq

      xaq New Member

      Joined:
      Aug 29, 2012
      Messages:
      315
      Likes Received:
      1
      Trophy Points:
      0
      what in the world would you need this for out of curiousity....
       
    15. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      heyho
      thank u for your help, but hb dont detect it as a plugin, it doesnt show up in the plugin list :/ any solutions?
       
    16. Megser

      Megser Well-Known Member

      Joined:
      Apr 17, 2010
      Messages:
      1,389
      Likes Received:
      73
      Trophy Points:
      48
      Updated to work with this Honorbuddy version. Be sure to plus(+) rep and like as a thanks if you found it useful! Will currently spam the "X" key. Read no1knowsy's comment above if you want to change it.

      Installation:

      1. Make a folder named Keyspammer inside the Plugins folder.

      2. Place the .CS file inside the folder.

      Have fun n' enjoy
       

      Attached Files:

      Last edited: Oct 13, 2012
    17. lavi

      lavi New Member

      Joined:
      Jul 31, 2012
      Messages:
      155
      Likes Received:
      0
      Trophy Points:
      0
      this worked, thank you
       
    18. tdbdesign

      tdbdesign New Member

      Joined:
      Aug 8, 2012
      Messages:
      118
      Likes Received:
      0
      Trophy Points:
      0
      is there any way to modify this plugin to only spam while NOT in combat?
       
    19. no1knowsy

      no1knowsy Well-Known Member

      Joined:
      Feb 28, 2010
      Messages:
      3,927
      Likes Received:
      57
      Trophy Points:
      48
      if (Me.Combat)
      return;

      Put that as the first thing after

      Pulse()
      {



      Soooooooooooooooooooooo:

      Pulse()
      {
      if(Me.Combat)
      return;
       
    20. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Isnt out of combat something like:
      if (!Me.Combat) ?
       

    Share This Page