- [POWER AUTOMATE] Hướng dẫn gởi tin nhắn zalo từ file Excel - No code
- [C#] Chia sẻ code lock và unlock user trong domain Window
- [SOFTWARE] Giới thiệu bộ phần mềm tính Kết Cấu Thép HatteSale, Mộng Đơn, Dầm, Sàn, Móng Cọc, Vách, Xà Gồ, Tính Tải Trọng
- [DEVEXPRESS] Vẽ Biểu Đồ Stock Chứng Khoán - Công Cụ Thiết Yếu Cho Nhà Đầu Tư trên Winform
- [C#] Hướng dẫn bảo mật ứng dụng 2FA (Multi-factor Authentication) trên Winform
- [C#] Hướng dẫn convert HTML code sang PDF File trên NetCore 7 Winform
- [C#] Hướng dẫn viết ứng dụng chat với Gemini AI Google Winform
- Hướng dẫn khóa file bằng nhiều process id, không cho xóa tập tin
- Hướng dẫn cách tạo Product Id cho ứng dụng phần mềm XXXXX-XXXXX-XXXXX-XXXXX
- [SQLSERVER] Hướng dẫn tạo script sql từ ứng dụng Sqlserver management Studio
- [C#] Hướng dẫn sử dụng thư viện AutoITx lấy id và password Ultraviewer trên winform
- [VB.NET] Hướng dẫn lấy thông tin tài khoản đăng nhập windows và khởi động lại ứng dụng ở chế độ Administrator
- [C#] Sử dụng thư viện Polly gửi lại request api khi request bị lỗi hay rớt mạng
- [DEVEXPRESS] Chia sẻ source code tạo báo cáo report in tem nhãn label trên C# winform
- [DEVEXPRESS] Hướng dẫn vẽ biểu đồ Bar Chart trên Winform
- [C#] Tạo form đăng nhập và đăng ký với hiệu ứng Sliding Animation Effect
- [C#] Hướng dẫn tạo thanh toán đơn hàng qua mã vạch VietQR sử dụng API PayOS hoàn toàn miễn phí
- [C#] Hướng dẫn ghi log ra RichTextBox giống Console trên Winform sử dụng thư viện Serilog
- [C#] Hướng dẫn cách tạo mã QR Code trên file Excel
- [VB.NET] Gởi tin nhắn và file đính kèm qua ứng dụng gởi tin nhắn Whats App
[C#] Sử dụng Microsoft Agent in Windows 7, 10 Winform
Xin chào các bạn, bài viết hôm nay mình sẻ hướng dẫn các bạn cách sử dụng Microsoft Agent trên Windows 7, 10 trong lập trình C#, Winform.
[C#] Using Microsoft Agent in Windows 7, 10
Microsoft Agent là các trợ lý ảo, thời còn hệ điều hành Microsoft Windows XP (Anh em thời 8x, 9x chắc không còn xa lạ với mấy em này)
Từ Windows 7 trở đi, Microsoft đã không còn sử dụng bộ này nữa, nếu các bạn muốn sử dụng và chạy nó trên Windows hiện tại.
Ở bên dưới source code của mình có file DoubleAgent_x86.msi, các bạn cài đặt vào để sử dụng lại bộ này nhé.
Dưới đây là hình ảnh của Biệt đội siêu anh hùng một thời trên Windows XP:
Video demo ứng dụng Microsoft Agent C#:
Source code sử dụng Microsoft Agent:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
private AgentObjects.IAgentCtlCharacter Avatar;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
axAgent1.Characters.Load("Merlin", Application.StartupPath + "\Merlin.acs");
Avatar = axAgent1.Characters["Merlin"];
Avatar.Show(0);
Avatar.MoveTo(850, 200);
Avatar.Speak("Tôi tên là Merlin!");
axAgent1.Characters.Load("Robby", Application.StartupPath + "\Robby.acs");
Avatar = axAgent1.Characters["Robby"];
Avatar.Show(0);
Avatar.MoveTo(950, 250);
Avatar.Speak("Tôi tên là Robby!");
axAgent1.Characters.Load("genie", Application.StartupPath + "\genie.acs");
Avatar = axAgent1.Characters["genie"];
Avatar.Show(this.Location);
Avatar.MoveTo(250, 250);
Avatar.Speak("Tôi tên là Genie!");
axAgent1.Characters.Load("Peedy", Application.StartupPath + "\Peedy.acs");
Avatar = axAgent1.Characters["Peedy"];
Avatar.Show(this.Location);
Avatar.Speak("Xin chào Lập trình VB.NET, chúng tôi đến từ Windows XP!");
Avatar.MoveTo(350, 250);
axAgent1.Characters.Load("clipy", Application.StartupPath + "\clipy.acs");
Avatar = axAgent1.Characters["clipy"];
Avatar.Show(this.Location);
Avatar.MoveTo(450, 250);
axAgent1.Characters.Load("OFFCAT", Application.StartupPath + "\OFFCAT.ACS");
Avatar = axAgent1.Characters["OFFCAT"];
Avatar.Show(this.Location);
Avatar.MoveTo(550, 250);
axAgent1.Characters.Load("MNATURE", Application.StartupPath + "\MNATURE.ACS");
Avatar = axAgent1.Characters["MNATURE"];
Avatar.Show(this.Location);
Avatar.MoveTo(650, 250);
axAgent1.Characters.Load("ROCKY", Application.StartupPath + "\ROCKY.ACS");
Avatar = axAgent1.Characters["ROCKY"];
Avatar.Show(this.Location);
Avatar.MoveTo(750, 250);
axAgent1.Characters.Load("F1", Application.StartupPath + "\F1.ACS");
Avatar = axAgent1.Characters["F1"];
Avatar.Show(this.Location);
Avatar.MoveTo(1050, 250);
}
}
}
Thanks for watching!