Công việc đúng như mong đợi đối với tôi. Mặc dù tôi thừa nhận nó hơi giống Hack. Có các tiện ích mở rộng trên github dành cho Chrome có thể đáng xem xét.
Và mọi người có thể áp dụng theo cách bên dưới để kiểm tra thứ xem nó hoạt động thế nào nhé.
FULL CODE VB.NET
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim workingArea = Screen.PrimaryScreen.WorkingArea
Dim w = workingArea.Width \ 2
Dim h = workingArea.Height
Dim x1 = workingArea.Left
Dim x2 = workingArea.Right
Dim y = workingArea.Top
Process.Start("chrome", $"--app=""data:text/html,<html><body><script>window.moveTo({x1},{y});window.resizeTo({w},{h});window.location='http://www.google.com';</script></body></html>""")
Process.Start("chrome", $"--app=""data:text/html,<html><body><script>window.moveTo({x2},{y});window.resizeTo({w},{h});window.location='http://www.google.com';</script></body></html>""")
End Sub
End Class
Chúc mọi người thành công với thủ thuật trên.
Mọi người nếu copy bài viết này vui lòng để lại nguồn để tôn trọng người viết nhé. Cảm ơn mọi người.


Comments