zar101
New Member
- Joined
- Mar 28, 2010
- Messages
- 92
- Reaction score
- 0
OMG! for the life of me i am missing what I am doing wrong. Its been years sinse i did any coding. So anyways any help would be great..
I am wanting to dance when i hit the key z..
Thanks Zar
I am wanting to dance when i hit the key z..
Thanks Zar
Code:
public class Hotkeytrigger : HBPlugin
{
[DllImport("User32.dll")]
private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
public override void Pulse()
{
if (Convert.ToInt32(GetAsyncKeyState(Keys.Z).ToString()) > 0)
{
Lua.DoString("/script /dance");
}
}