What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

spam F key

may

New Member
Joined
Mar 26, 2015
Messages
59
Reaction score
1
can some one make a plugin that spams F key for me on about 100ms delay?
 
Im sorry to ask but I don't know how to make plugins and this would help me out a lot so if any one has some free time plz help me out.
 
Here you go :)

You can set the Key you want to press and the interval (in seconds) with the variables "interval" and "KeyToPress".

Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;

namespace KeyPresser
{
    public class KeyPresser : Core
    {
        int interval = 5; //interval in seconds
        string KeyToPress = "F"; //key to press
        public void PluginRun()
        {
            Log("[KP]: Initialized KeyPresser");
            while (true)
            {
                SendKeys.Send(KeyToPress);
                Thread.Sleep(interval * 1000);
            }
        }

        public void PluginStop()
        {
            Log("[KP]: Stopped.");
        }
        public static string GetPluginAuthor()
        {
            return "p4mdude";
        }
        public static string GetPluginVersion()
        {
            return "0.0.0.1";
        }
        public static string GetPluginDescription()
        {
            return "KeyPresser";
        }
    }
}
 

Attachments

WOW! think you so much. this will help me out a lot.
 
I have been tring to get this to work. Here is my question

{
SendKeys.Send(KeyToPress);
Thread.Sleep(interval * 1000);
}

Is this where i change what key to press and change interval? In between the ()? Do i need add anything else?
 
Umm ya 1st time going to use and I boot it up and get
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.


umm what am I not doing? I still have the code u gave me all I did was compile it.
 
I have been tring to get this to work. Here is my question

{
SendKeys.Send(KeyToPress);
Thread.Sleep(interval * 1000);
}

Is this where i change what key to press and change interval? In between the ()? Do i need add anything else?

Right above that. Wäre the variables are declared.

Edit: Here:

Code:
int interval = 5; //interval in seconds
        string KeyToPress = "F"; //key to press
 
Last edited:
Umm ya 1st time going to use and I boot it up and get
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.


umm what am I not doing? I still have the code u gave me all I did was compile it.
Will have a look at that.
 
if you want it to do 100ms and not seconds you will also need to change this
Thread.Sleep(interval * 1000);
line to 100 from 1000 though.
but why you would want to spam it that often i have no idea :)
 
Umm ya 1st time going to use and I boot it up and get
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.
[KP]: Initialized KeyPresser
[KP]: Stopped.


umm what am I not doing? I still have the code u gave me all I did was compile it.

I am now getting this as well. Even after i change the values
 
Sending key presses may be helpful in certain situations but the way the OP wants to use it has gotten people banned. Might work for using the mining drill on a farmhouse where the interval is known but there are better ways of doing it with Archebuddy.
 
Hi Can someone plesae get this plugin to work please really need it to stay online so i cant go on afk and get kick out game

PLEASE HELP ME SOMEONE
 
Back
Top