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

[Request]press hotkey?

Vemorz

New Member
Joined
Sep 6, 2014
Messages
1
Reaction score
0
Just want one press hotkey plugin. To use with OrderBot like "press N,5,0,0,1,5,5,5,5,6," to craft some stuffs. And use retainer

Or someone say how work this code from MultiBot and i will try to make one .-. :

#region Keyboard change class.

[DllImport("user32.dll")]
public static extern IntPtr PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

public static void ChangeJob()
{
Navigator.Stop();

const uint WM_KEYDOWN = 0x100;
const uint WM_KEYUP = 0x0101;

PostMessage(Core.Memory.Process.MainWindowHandle, WM_KEYDOWN, (IntPtr)(Keys.D7), IntPtr.Zero);
PostMessage(Core.Memory.Process.MainWindowHandle, WM_KEYUP, (IntPtr)(Keys.D7), IntPtr.Zero);

Thread.Sleep(5000);
Logging.Write(Colors.Gold, "[MultiBot] Changing Job");
}
#endregion

Thanks for any help.
 
Back
Top