volicio
New Member
- Joined
- Oct 29, 2010
- Messages
- 48
- Reaction score
- 1
I'll be the first to admit I generally dont have a clue what I'm doing. Sure I can look at the code of other peoples plugins and understand what they do and why, but I dont have the training or the knowledge to really write stuff of my own. That being said, I'm starting to think I've bitten off more then I can chew here trying to write my own plugin to toggle HB on and off on a keystorke.
What I'm Trying to do is something like this:
Its late and my VSC# doesn't want to load and I'm pulling this stuff off the top of my head, so most of that code is so wrong its kinda scary... but It gets the idea across... I'll try and update it a little later. The only problem is that the only two references I have for calling a keystroke are old and don't seem to work anymore.
What I'm Trying to do is something like this:
Code:
If (IsKeyDown(Pageup) && (honorbuddy.IsRunning)
{
dLog("Stopping Bot");
TreeRoot.Stop();
}
ElseIf (IsKeyDown(Pageup) && (honorbuddy.IsNotRunning)
{
dLog("Starting Bot");
TreeRoot.Start();
}
Its late and my VSC# doesn't want to load and I'm pulling this stuff off the top of my head, so most of that code is so wrong its kinda scary... but It gets the idea across... I'll try and update it a little later. The only problem is that the only two references I have for calling a keystroke are old and don't seem to work anymore.