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";
}
}
}
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?
int interval = 5; //interval in seconds
string KeyToPress = "F"; //key to press
Will have a look at that.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.
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.
ya I was standing by a mine just to mine it every time it came up but it did not work and just stop working sorry to bug.Will have a look at that.