public Station(WindowHandler wh) { this.m = wh.MOUSE; this.pm = wh.PMOUSE; this.mh = wh.MENU; this.com = wh.COMMUNICATOR; ran = new Random(); }
public AddressBook(WindowHandler wh) { this.com = wh.COMMUNICATOR; this.kb = wh.KEYBOARD; m = wh.MOUSE; pm = wh.PMOUSE; this.wh = wh; }
public LocalHandler(WindowHandler wh) { com = wh.COMMUNICATOR; m = wh.MOUSE; pm = wh.PMOUSE; ran = new Random(); mh = wh.MENU; kb = wh.KEYBOARD; }
public MenuHandler(WindowHandler wh) { this.pm = wh.PMOUSE; pm.Speed = 20; this.m = wh.MOUSE; this.comm = wh.COMMUNICATOR; this.kb = wh.KEYBOARD; random = new Random(); }
public static extern void dllMoveMouse(IntPtr handle, int x, int y); public DrawableScreen(ClientWindow cw, WindowHandler wh) : base() { this.wh = wh; this.cw = cw; pm = wh.PMOUSE; m = wh.MOUSE;
public Ship(WindowHandler wh) { overviewhandler = wh.OVERVIEW; com = wh.COMMUNICATOR; menu = wh.MENU; pm = wh.PMOUSE; m = wh.MOUSE; kb = wh.KEYBOARD; }
/// <summary> /// Builds the session object with the given windowhandler /// </summary> /// <param name="wh">The reference to the bot's windowhandler</param> public Session(WindowHandler wh) { this.com = wh.COMMUNICATOR; this.kb = wh.KEYBOARD; m = wh.MOUSE; pm = wh.PMOUSE; this.wh = wh; addBook = new AddressBook(wh); local = new LocalHandler(wh); }
/// <summary> /// Handles the agent interaction /// </summary> /// <param name="wh"></param> public AgentHandler(WindowHandler wh) { com = wh.COMMUNICATOR; m = wh.MOUSE; pm = wh.PMOUSE; ran = new Random(); mh = wh.MENU; kb = wh.KEYBOARD; sess = wh.SESSION; }
/// <summary> /// Updates the location of the drawable area /// </summary> /// <param name="e">EventArgs for the event</param> protected override void OnVisibleChanged(EventArgs e) { if (bots.Count > 0) { WindowHandler tmp = bots[0].getHandle(); if (tmp != null) { foreach (Utils util in DrawAbleScreenFetcher.fetchAllScreens(tmp.getPid())) { if (util != null) { util.setLocation(new Point(this.Location.X + 10, this.Location.Y + 80)); } } } } //this.tabControl1.Size = this.Size; base.OnVisibleChanged(e); }
/// <summary> /// Initializes the bot by creating a new WindowHandler and adding it as a tab to the ClientWindow /// </summary> /// <param name="cw">A reference to the ClientWindow</param> public void initializeBot(ClientWindow cw) { bot = new WindowHandler(cw); bot.bringToFront(); bot.setTopLevel(false); bot.setVisible(true); bot.setFormBorderStyle(FormBorderStyle.None); bot.setDockStyle(DockStyle.Fill); cw.tabControl1.TabPages[0].Controls.Add(bot); cw.tabControl1.TabPages[0].Text = "Bot"; /* backgroundScripts = new List<Scriptable>(); Script.Scripts.InterfaceCloser icloser = new Script.Scripts.InterfaceCloser(); icloser.initializeInputs(bot); backgroundScripts.Add(icloser); */ this.cw = cw; //DEBUGGING STUFF //com = new Communicator("\\\\.\\pipe\\TestChannel"); menuHandler = new MenuHandler(bot.MOUSE, bot.PMOUSE, bot.COMMUNICATOR, bot.KEYBOARD); over = new OverviewHandler(bot.MENU, bot.MOUSE, bot.PMOUSE, bot.COMMUNICATOR); }
/// <summary> /// Internal use, the Bot will initialize the script with its input handlers once its loaded into memory /// </summary> /// <param name="bot">The reference to the bot's windowhandler</param> public void initializeInputs(WindowHandler bot) { this.EMouse = bot.MOUSE; this.EPreciseMouse = bot.PMOUSE; this.EMenuHandler = bot.MENU; this.ECommunicator = bot.COMMUNICATOR; this.EOverViewHandler = bot.OVERVIEW; this.EStationHandler = bot.STATION; this.MyShip = bot.SHIP; this.ESession = bot.SESSION; this.ECamera = bot.CAMERA; this.EKeyboard = bot.KEYBOARD; this.ELocalHandler = bot.LOCAL; this.EDrawingArea = bot.DrawingArea; this.ELogger = bot.LOGGER; this.ELogger.ScriptName = name; this.EAgentHandler = bot.AGENT; ERandom = new Random(); }
public Camera(WindowHandler wh) { m = wh.MOUSE; pm = wh.PMOUSE; com = wh.COMMUNICATOR; }