Chào các bạn! Trong các khóa học trước của chuỗi khóa học Auto C# chúng ta đã cùng tìm hiểu về SELENIUM và HTTP REQUEST trong C#.
Ở khóa học này, bạn sẽ được tìm hiểu thêm một phần khá thú vị, đó là LẬP TRÌNH ĐIỀU KHIỂN ỨNG DỤNG PC VỚI C#. Mục đích hướng tới là các bạn có thể làm auto bằng C# mà không cần dùng tới các ngôn ngữ như AutoIT, C++,…
Chúng ta đã biết cách CHẠY LỆNH CMD , tiếp theo chúng ta sẽ cùng tìm hiểu về cách Click vào tọa độ trong điều khiển ứng dụng PC (Có chiếm chuột)
Nội dung
Nội dung bao gồm Source code & các lưu ý chính về quá trình thực hiện phần mềm. Kteam khuyến khích bạn cập nhập thêm nhiều kinh nghiệm cũng như hiểu chi tiết hơn về các kỹ thuật được đề cập trong bài học thông qua các video đính kèm.
Đừng quên Like Facebook hoặc +1 Googleđể ủng hộ Kteam và tác giả.
Để có đủ khả năng học hiểu các nội dung được đề cập đến trong khóa học. Bạn nên có tối thiểu kiến thức về các phần:
namespace AutoControlAppPC
{
partial class Form1
{
///<summary>/// Required designer variable.///</summary>private System.ComponentModel.IContainer components = null;
///<summary>/// Clean up any resources being used.///</summary>///<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>protectedoverridevoidDispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code///<summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor.///</summary>privatevoidInitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.button7 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
this.SuspendLayout();
// // button1// this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Mở notepad";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
// // button2// this.button2.Location = new System.Drawing.Point(93, 12);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(112, 23);
this.button2.TabIndex = 1;
this.button2.Text = "Mở file/Ứng dụng";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
// // button3// this.button3.Location = new System.Drawing.Point(12, 41);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(122, 23);
this.button3.TabIndex = 2;
this.button3.Text = "Chạy lệnh CMD";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
// // button4// this.button4.Location = new System.Drawing.Point(140, 41);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(122, 23);
this.button4.TabIndex = 3;
this.button4.Text = "Chạy lệnh CMD ngầm";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
// // button5// this.button5.Location = new System.Drawing.Point(268, 41);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(203, 23);
this.button5.TabIndex = 4;
this.button5.Text = "Chạy lệnh CMD ngầm và lấy kết quả";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
// // button6// this.button6.Location = new System.Drawing.Point(373, 67);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(149, 23);
this.button6.TabIndex = 5;
this.button6.Text = "Click vào tọa độ màn hình";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
// // numericUpDown1// this.numericUpDown1.Location = new System.Drawing.Point(12, 70);
this.numericUpDown1.Maximum = newdecimal(newint[] {
3000,
0,
0,
0});
this.numericUpDown1.Minimum = newdecimal(newint[] {
3000,
0,
0,
-2147483648});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(75, 20);
this.numericUpDown1.TabIndex = 6;
// // numericUpDown2// this.numericUpDown2.Location = new System.Drawing.Point(93, 70);
this.numericUpDown2.Maximum = newdecimal(newint[] {
3000,
0,
0,
0});
this.numericUpDown2.Minimum = newdecimal(newint[] {
3000,
0,
0,
-2147483648});
this.numericUpDown2.Name = "numericUpDown2";
this.numericUpDown2.Size = new System.Drawing.Size(75, 20);
this.numericUpDown2.TabIndex = 7;
// // checkBox1// this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(174, 73);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(77, 17);
this.checkBox1.TabIndex = 8;
this.checkBox1.Text = "Chuột phải";
this.checkBox1.UseVisualStyleBackColor = true;
// // checkBox2// this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(257, 73);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(85, 17);
this.checkBox2.TabIndex = 9;
this.checkBox2.Text = "Double click";
this.checkBox2.UseVisualStyleBackColor = true;
// // button7// this.button7.Location = new System.Drawing.Point(528, 67);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(149, 23);
this.button7.TabIndex = 10;
this.button7.Text = "Click vào tọa độ ứng dụng";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
// // textBox1// this.textBox1.Location = new System.Drawing.Point(683, 69);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(153, 20);
this.textBox1.TabIndex = 11;
this.textBox1.Text = "Remote Desktop Connection";
// // Form1// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(848, 256);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button7);
this.Controls.Add(this.checkBox2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.numericUpDown2);
this.Controls.Add(this.numericUpDown1);
this.Controls.Add(this.button6);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregionprivate System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.NumericUpDown numericUpDown2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.TextBox textBox1;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
Project tải xuống
Nếu việc thực hành theo hướng dẫn không diễn ra suôn sẻ như mong muốn. Bạn cũng có thể tải xuốngPROJECT THAM KHẢO ở link bên dưới!
Phần mềm & Thư viện khác
Kết
Trong bài này, chúng ta đã tìm hiểu cách mở ứng dụng trong điều khiển ứng dụng PC.
Ở bài sau, Kteam sẽ giới thiệu đến bạn cách CLICK VÀO CONTROL TRONG ĐIỀU KHIỂN ỨNG DỤNG PC
Cảm ơn các bạn đã theo dõi bài viết. Hãy để lại bình luận hoặc góp ý của mình để phát triển bài viết tốt hơn. Và đừng quên “Luyện tập – Thử Thách – Không ngại khó”
Tải xuống
Tài liệu
Nhằm phục vụ mục đích học tập Offline của cộng đồng, Kteam hỗ trợ tính năng lưu trữ nội dung bài học Click vào tọa độ trong điều khiển ứng dụng PC dưới dạng file PDF trong link bên dưới.
Ngoài ra, bạn cũng có thể tìm thấy các tài liệu được đóng góp từ cộng đồng ở mục TÀI LIỆU trên thư viện Howkteam.com
Đừng quên like và share để ủng hộ Kteam và tác giả nhé!
Thảo luận
Nếu bạn có bất kỳ khó khăn hay thắc mắc gì về khóa học, đừng ngần ngại đặt câu hỏi trong phần bên dưới hoặc trong mục HỎI & ĐÁP trên thư viện Howkteam.com để nhận được sự hỗ trợ từ cộng đồng.
Ở khóa học này, bạn sẽ được tìm hiểu thêm một phần khá thú vị, đó là LẬP TRÌNH ĐIỀU KHIỂN ỨNG DỤNG PC VỚI C#. Mục đích hướng tới là các bạn có thể làm auto bằng C# mà không cần dùng tới các ngôn ngữ như AutoIT, C++,…
System.BadImageFormatException: 'Could not load file or assembly 'KAutoHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.'
bình luận
sr
Thư viện Kauto helper lỗi không chạy được
System.BadImageFormatException: 'Could not load file or assembly 'KAutoHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.'
A Long cho em hỏi xíu về kỹ thuật với ạ.
Em Có 1 windows và em ẩn xuống taskbar và có handler của nó rùi vậy dùng lệnh nào để nó hiện tại trên màn hình ạ .
Em cảm ơn.