I was using lua unlock for my Rotations addons
I want to translate all my lua to HB
I want to know how to do this in HB ?
I have tried this:if ActionButton3:GetButtonState() == 'PUSHED'
and not IsLeftShiftKeyDown()
and not IsLeftAltKeyDown()
and not IsLeftControlKeyDown()
then
XXXXXXXXXXXXXXXX
end
but things not very good..[DllImport("user32.dll")]
private static extern short GetAsyncKeyState(Keys vKey);
public override void Combat()
{
///////// KEY 3 //////////////////////
if ( GetAsyncKeyState(Keys.D3) != 0 &&
GetAsyncKeyState(Keys.LShiftKey) == 0 &&
GetAsyncKeyState(Keys.LControlKey) == 0 &&
GetAsyncKeyState(Keys.Alt) == 0)
{ XXXXXXXX }
}
sometimes the bot will do nothing when I PUSHED 3 on my keyboard and right mouse button ... and few seconds later it will continue...
I want to run my Rotations by holding a key or pushing a action bar button, stop holding stop Rotations .
tried :
and this will fully do nothing...public override void Combat()
{
if ( Keyboard.IsKeyDown(Key.D2) &&
!Keyboard.IsKeyDown(Key.LeftCtrl) &&
!Keyboard.IsKeyDown(Key.LeftShift) &&
!Keyboard.IsKeyDown(Key.LeftAlt))
{ SpellManager.Cast("Black Arrow"); }
}
I know there are some botbase or Rotations have a pause function by pressing some key.
while what I want is start/run by pressing some key and pause by without pressing that key.
need help :S