コード例 #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
ファイル: AddressBook.cs プロジェクト: daemonfire300/Eryan
 public AddressBook(WindowHandler wh)
 {
     this.com = wh.COMMUNICATOR;
     this.kb = wh.KEYBOARD;
     m = wh.MOUSE;
     pm = wh.PMOUSE;
     this.wh = wh;
 }
コード例 #3
0
ファイル: LocalHandler.cs プロジェクト: utkuyildirim/Eryan
 public LocalHandler(WindowHandler wh)
 {
     com = wh.COMMUNICATOR;
     m = wh.MOUSE;
     pm = wh.PMOUSE;
     ran = new Random();
     mh = wh.MENU;
     kb = wh.KEYBOARD;
 }
コード例 #4
0
ファイル: MenuHandler.cs プロジェクト: MasterSpeed/Eryan
 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
ファイル: DrawableScreen.cs プロジェクト: emist/Eryan
        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
ファイル: Session.cs プロジェクト: utkuyildirim/Eryan
 /// <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
ファイル: AgentHandler.cs プロジェクト: emist/Eryan
 /// <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;
 }