示例#1
0
文件: Station.cs 项目: emist/Eryan
 public Station(WindowHandler wh)
 {
     this.m = wh.MOUSE;
     this.pm = wh.PMOUSE;
     this.mh = wh.MENU;
     this.com = wh.COMMUNICATOR;
     ran = new Random();
 }
示例#2
0
 public AddressBook(WindowHandler wh)
 {
     this.com = wh.COMMUNICATOR;
     this.kb = wh.KEYBOARD;
     m = wh.MOUSE;
     pm = wh.PMOUSE;
     this.wh = wh;
 }
示例#3
0
 public LocalHandler(WindowHandler wh)
 {
     com = wh.COMMUNICATOR;
     m = wh.MOUSE;
     pm = wh.PMOUSE;
     ran = new Random();
     mh = wh.MENU;
     kb = wh.KEYBOARD;
 }
示例#4
0
 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();
 }
示例#5
0
        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;
示例#6
0
文件: Ship.cs 项目: MasterSpeed/Eryan
 public Ship(WindowHandler wh)
 {
     overviewhandler = wh.OVERVIEW;
     com = wh.COMMUNICATOR;
     menu = wh.MENU;
     pm = wh.PMOUSE;
     m = wh.MOUSE;
     kb = wh.KEYBOARD;
 }
示例#7
0
 /// <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);
 }
示例#8
0
 /// <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;
 }
示例#9
0
 /// <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);
 }
示例#10
0
文件: Bot.cs 项目: MasterSpeed/Eryan
        /// <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);
        }
示例#11
0
文件: Scriptable.cs 项目: emist/Eryan
 /// <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();
 }
示例#12
0
文件: Camera.cs 项目: emist/Eryan
 public Camera(WindowHandler wh)
 {
     m = wh.MOUSE;
     pm = wh.PMOUSE;
     com = wh.COMMUNICATOR;
 }