public MainForm() { InitializeComponent(); AllowTransparency = true; presenter = new MainFormPresenter(this, new JediSettings()); mgr.ShortcutActivated += mgr_OnShortcutActivated; mouseKeyEventProvider = new MouseKeyEventProvider(); mouseKeyEventProvider.KeyDown += OnKeyDown; mouseKeyEventProvider.KeyUp += OnKeyUp; mouseKeyEventProvider.Enabled = true; }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.loadLabel = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.controlL = new System.Windows.Forms.Label(); this.restL = new System.Windows.Forms.Label(); this.kiteL = new System.Windows.Forms.Label(); this.useMountL = new System.Windows.Forms.Label(); this.classL = new System.Windows.Forms.Label(); this.roamTimerL = new System.Windows.Forms.Label(); this.goldGainL = new System.Windows.Forms.Label(); this.runtimeL = new System.Windows.Forms.Label(); this.levelGainL = new System.Windows.Forms.Label(); this.pathL = new System.Windows.Forms.Label(); this.profileL = new System.Windows.Forms.Label(); this.statusL = new System.Windows.Forms.Label(); this.modeToggleButton = new System.Windows.Forms.Button(); this.profileButton = new System.Windows.Forms.Button(); this.settingsButton = new System.Windows.Forms.Button(); this.radarToggleButton = new System.Windows.Forms.Button(); this.oneSecTimer = new System.Windows.Forms.Timer(this.components); this.mainTimer = new System.Windows.Forms.Timer(this.components); this.startButton = new System.Windows.Forms.Button(); this.input = new MouseKeyboardActivityMonitor.Controls.MouseKeyEventProvider(); this.pathButton = new System.Windows.Forms.Button(); this.fileLoadTimer = new System.Windows.Forms.Timer(this.components); this.ySeekTimer = new System.Windows.Forms.Timer(this.components); this.unstickTimer = new System.Windows.Forms.Timer(this.components); this.pickupTimer = new System.Windows.Forms.Timer(this.components); this.retreatTimer = new System.Windows.Forms.Timer(this.components); this.autoHealTimer = new System.Windows.Forms.Timer(this.components); this.rangerLootTimer = new System.Windows.Forms.Timer(this.components); this.restTimer = new System.Windows.Forms.Timer(this.components); this.sideStepTimer = new System.Windows.Forms.Timer(this.components); this.vendorTimer = new System.Windows.Forms.Timer(this.components); this.attackLoopTimer = new System.Windows.Forms.Timer(this.components); this.findButton = new System.Windows.Forms.Timer(this.components); this.oneMsTimer = new System.Windows.Forms.Timer(this.components); this.pathCombatTimer = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // loadLabel // this.loadLabel.AutoSize = true; this.loadLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.loadLabel.ForeColor = System.Drawing.SystemColors.ControlText; this.loadLabel.Location = new System.Drawing.Point(12, 219); this.loadLabel.Name = "loadLabel"; this.loadLabel.Size = new System.Drawing.Size(91, 13); this.loadLabel.TabIndex = 0; this.loadLabel.Text = "Welcome to tbp..."; // // label4 // this.label4.AutoSize = true; this.label4.ForeColor = System.Drawing.SystemColors.ControlText; this.label4.Location = new System.Drawing.Point(98, 160); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(26, 13); this.label4.TabIndex = 20; this.label4.Text = "Bot:"; // // label3 // this.label3.AutoSize = true; this.label3.ForeColor = System.Drawing.SystemColors.ControlText; this.label3.Location = new System.Drawing.Point(98, 134); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 13); this.label3.TabIndex = 19; this.label3.Text = "Rest:"; // // label2 // this.label2.AutoSize = true; this.label2.ForeColor = System.Drawing.SystemColors.ControlText; this.label2.Location = new System.Drawing.Point(98, 147); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(40, 13); this.label2.TabIndex = 18; this.label2.Text = "Mount:"; // // label1 // this.label1.AutoSize = true; this.label1.ForeColor = System.Drawing.SystemColors.ControlText; this.label1.Location = new System.Drawing.Point(98, 121); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(31, 13); this.label1.TabIndex = 17; this.label1.Text = "Kite: "; // // controlL // this.controlL.AutoSize = true; this.controlL.ForeColor = System.Drawing.SystemColors.ControlText; this.controlL.Location = new System.Drawing.Point(141, 160); this.controlL.Name = "controlL"; this.controlL.Size = new System.Drawing.Size(16, 13); this.controlL.TabIndex = 16; this.controlL.Text = "---"; // // restL // this.restL.AutoSize = true; this.restL.ForeColor = System.Drawing.SystemColors.ControlText; this.restL.Location = new System.Drawing.Point(141, 134); this.restL.Name = "restL"; this.restL.Size = new System.Drawing.Size(16, 13); this.restL.TabIndex = 15; this.restL.Text = "---"; // // kiteL // this.kiteL.AutoSize = true; this.kiteL.ForeColor = System.Drawing.SystemColors.ControlText; this.kiteL.Location = new System.Drawing.Point(141, 121); this.kiteL.Name = "kiteL"; this.kiteL.Size = new System.Drawing.Size(16, 13); this.kiteL.TabIndex = 12; this.kiteL.Text = "---"; // // useMountL // this.useMountL.AutoSize = true; this.useMountL.ForeColor = System.Drawing.SystemColors.ControlText; this.useMountL.Location = new System.Drawing.Point(141, 147); this.useMountL.Name = "useMountL"; this.useMountL.Size = new System.Drawing.Size(16, 13); this.useMountL.TabIndex = 11; this.useMountL.Text = "---"; // // classL // this.classL.AutoSize = true; this.classL.ForeColor = System.Drawing.SystemColors.ControlText; this.classL.Location = new System.Drawing.Point(98, 38); this.classL.Name = "classL"; this.classL.Size = new System.Drawing.Size(38, 13); this.classL.TabIndex = 10; this.classL.Text = "Class: "; // // roamTimerL // this.roamTimerL.AutoSize = true; this.roamTimerL.ForeColor = System.Drawing.SystemColors.ControlText; this.roamTimerL.Location = new System.Drawing.Point(98, 63); this.roamTimerL.Name = "roamTimerL"; this.roamTimerL.Size = new System.Drawing.Size(64, 13); this.roamTimerL.TabIndex = 9; this.roamTimerL.Text = "Roam Time:"; // // goldGainL // this.goldGainL.AutoSize = true; this.goldGainL.ForeColor = System.Drawing.SystemColors.ControlText; this.goldGainL.Location = new System.Drawing.Point(98, 102); this.goldGainL.Name = "goldGainL"; this.goldGainL.Size = new System.Drawing.Size(69, 13); this.goldGainL.TabIndex = 6; this.goldGainL.Text = "Gold Gained:"; // // runtimeL // this.runtimeL.AutoSize = true; this.runtimeL.ForeColor = System.Drawing.SystemColors.ControlText; this.runtimeL.Location = new System.Drawing.Point(98, 76); this.runtimeL.Name = "runtimeL"; this.runtimeL.Size = new System.Drawing.Size(56, 13); this.runtimeL.TabIndex = 5; this.runtimeL.Text = "Run Time:"; // // levelGainL // this.levelGainL.AutoSize = true; this.levelGainL.ForeColor = System.Drawing.SystemColors.ControlText; this.levelGainL.Location = new System.Drawing.Point(98, 89); this.levelGainL.Name = "levelGainL"; this.levelGainL.Size = new System.Drawing.Size(78, 13); this.levelGainL.TabIndex = 4; this.levelGainL.Text = "Levels Gained:"; // // pathL // this.pathL.AutoSize = true; this.pathL.ForeColor = System.Drawing.SystemColors.ControlText; this.pathL.Location = new System.Drawing.Point(98, 25); this.pathL.Name = "pathL"; this.pathL.Size = new System.Drawing.Size(32, 13); this.pathL.TabIndex = 3; this.pathL.Text = "Path:"; // // profileL // this.profileL.AutoSize = true; this.profileL.ForeColor = System.Drawing.SystemColors.ControlText; this.profileL.Location = new System.Drawing.Point(98, 12); this.profileL.Name = "profileL"; this.profileL.Size = new System.Drawing.Size(39, 13); this.profileL.TabIndex = 2; this.profileL.Text = "Profile:"; // // statusL // this.statusL.AutoSize = true; this.statusL.ForeColor = System.Drawing.SystemColors.ControlText; this.statusL.Location = new System.Drawing.Point(98, 190); this.statusL.Name = "statusL"; this.statusL.Size = new System.Drawing.Size(59, 13); this.statusL.TabIndex = 0; this.statusL.Text = "Bot Status:"; // // modeToggleButton // this.modeToggleButton.Enabled = false; this.modeToggleButton.Location = new System.Drawing.Point(12, 193); this.modeToggleButton.Name = "modeToggleButton"; this.modeToggleButton.Size = new System.Drawing.Size(80, 23); this.modeToggleButton.TabIndex = 2; this.modeToggleButton.TabStop = false; this.modeToggleButton.Text = "Mode: PATH"; this.modeToggleButton.UseVisualStyleBackColor = true; this.modeToggleButton.Click += new System.EventHandler(this.modeToggleButton_Click); // // profileButton // this.profileButton.Enabled = false; this.profileButton.Location = new System.Drawing.Point(12, 41); this.profileButton.Name = "profileButton"; this.profileButton.Size = new System.Drawing.Size(80, 23); this.profileButton.TabIndex = 3; this.profileButton.TabStop = false; this.profileButton.Text = "Profiles"; this.profileButton.UseVisualStyleBackColor = true; this.profileButton.Click += new System.EventHandler(this.profileButton_Click); // // settingsButton // this.settingsButton.Enabled = false; this.settingsButton.Location = new System.Drawing.Point(12, 99); this.settingsButton.Name = "settingsButton"; this.settingsButton.Size = new System.Drawing.Size(80, 23); this.settingsButton.TabIndex = 4; this.settingsButton.TabStop = false; this.settingsButton.Text = "Settings"; this.settingsButton.UseVisualStyleBackColor = true; this.settingsButton.Click += new System.EventHandler(this.settingsButton_Click); // // radarToggleButton // this.radarToggleButton.Enabled = false; this.radarToggleButton.Location = new System.Drawing.Point(12, 164); this.radarToggleButton.Name = "radarToggleButton"; this.radarToggleButton.Size = new System.Drawing.Size(80, 23); this.radarToggleButton.TabIndex = 5; this.radarToggleButton.TabStop = false; this.radarToggleButton.Text = "Radar: "; this.radarToggleButton.UseVisualStyleBackColor = true; this.radarToggleButton.Click += new System.EventHandler(this.radarToggleButton_Click); // // oneSecTimer // this.oneSecTimer.Enabled = true; this.oneSecTimer.Interval = 1000; this.oneSecTimer.Tick += new System.EventHandler(this.slowTimer_Tick); // // mainTimer // this.mainTimer.Interval = 10; this.mainTimer.Tick += new System.EventHandler(this.mainTimer_Tick); // // startButton // this.startButton.Enabled = false; this.startButton.Location = new System.Drawing.Point(12, 12); this.startButton.Name = "startButton"; this.startButton.Size = new System.Drawing.Size(80, 23); this.startButton.TabIndex = 8; this.startButton.TabStop = false; this.startButton.Text = "Hook"; this.startButton.UseVisualStyleBackColor = true; this.startButton.Click += new System.EventHandler(this.startButton_Click); // // input // this.input.Enabled = false; this.input.HookType = MouseKeyboardActivityMonitor.Controls.HookType.Global; this.input.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.input_KeyPress); this.input.KeyDown += new System.Windows.Forms.KeyEventHandler(this.input_KeyDown); // // pathButton // this.pathButton.Enabled = false; this.pathButton.Location = new System.Drawing.Point(12, 70); this.pathButton.Name = "pathButton"; this.pathButton.Size = new System.Drawing.Size(80, 23); this.pathButton.TabIndex = 9; this.pathButton.TabStop = false; this.pathButton.Text = "Paths"; this.pathButton.UseVisualStyleBackColor = true; this.pathButton.Click += new System.EventHandler(this.pathButton_Click); // // fileLoadTimer // this.fileLoadTimer.Interval = 1000; this.fileLoadTimer.Tick += new System.EventHandler(this.fileLoadTimer_Tick); // // ySeekTimer // this.ySeekTimer.Interval = 10; this.ySeekTimer.Tick += new System.EventHandler(this.ySeekTimer_Tick); // // unstickTimer // this.unstickTimer.Interval = 10; this.unstickTimer.Tick += new System.EventHandler(this.unstickTimer_Tick); // // pickupTimer // this.pickupTimer.Enabled = true; this.pickupTimer.Interval = 1800; this.pickupTimer.Tick += new System.EventHandler(this.pickupTimer_Tick); // // retreatTimer // this.retreatTimer.Interval = 1000; this.retreatTimer.Tick += new System.EventHandler(this.retreatTimer_Tick); // // autoHealTimer // this.autoHealTimer.Interval = 1000; this.autoHealTimer.Tick += new System.EventHandler(this.autoHealTimer_Tick); // // rangerLootTimer // this.rangerLootTimer.Interval = 2500; this.rangerLootTimer.Tick += new System.EventHandler(this.rangerLootTimer_Tick); // // restTimer // this.restTimer.Interval = 8; this.restTimer.Tick += new System.EventHandler(this.restTimer_Tick); // // sideStepTimer // this.sideStepTimer.Interval = 550; this.sideStepTimer.Tick += new System.EventHandler(this.sideStepTimer_Tick); // // vendorTimer // this.vendorTimer.Interval = 800; this.vendorTimer.Tick += new System.EventHandler(this.vendorTimer_Tick); // // attackLoopTimer // this.attackLoopTimer.Interval = 250; this.attackLoopTimer.Tick += new System.EventHandler(this.attackLoopTimer_Tick); // // findButton // this.findButton.Interval = 30; this.findButton.Tick += new System.EventHandler(this.findButton_Tick); // // oneMsTimer // this.oneMsTimer.Enabled = true; this.oneMsTimer.Interval = 1; this.oneMsTimer.Tick += new System.EventHandler(this.oneMsTimer_Tick); // // pathCombatTimer // this.pathCombatTimer.Tick += new System.EventHandler(this.pathCombatTimer_Tick); // // MainUI // this.ClientSize = new System.Drawing.Size(354, 238); this.Controls.Add(this.loadLabel); this.Controls.Add(this.label3); this.Controls.Add(this.pathButton); this.Controls.Add(this.label2); this.Controls.Add(this.startButton); this.Controls.Add(this.label1); this.Controls.Add(this.controlL); this.Controls.Add(this.radarToggleButton); this.Controls.Add(this.restL); this.Controls.Add(this.settingsButton); this.Controls.Add(this.kiteL); this.Controls.Add(this.profileButton); this.Controls.Add(this.useMountL); this.Controls.Add(this.modeToggleButton); this.Controls.Add(this.classL); this.Controls.Add(this.roamTimerL); this.Controls.Add(this.statusL); this.Controls.Add(this.goldGainL); this.Controls.Add(this.profileL); this.Controls.Add(this.runtimeL); this.Controls.Add(this.pathL); this.Controls.Add(this.levelGainL); this.Controls.Add(this.label4); this.ForeColor = System.Drawing.SystemColors.ControlText; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.Name = "MainUI"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.ResumeLayout(false); this.PerformLayout(); }