A .NET wrapper for TKUCourseApplication
This is a program to help you on TKU curriculum online system (Include the break captcha).
TKU Curriculum Online System(Chinese) TKU Curriculum Online System(English)
Package examples : GitHub
Since TKUCourseApplication compiled with Visual Studio 2017 you'll need to ensure you have the Microsoft .NET Framework 4.5 installed.
-
public bool Login(string stu_id, string stu_pwd);Your student id Your student password Returnstrueif the login was successful, otherwise returnsfalse. -
public bool AddCourse(string course_id);Course number Returnstrueif the course add successful, otherwise returnsfalse. -
public bool DropCourse(string course_id);Course number Returnstrueif the course drop successful, otherwise returnsfalse.
TKUCourse.CHT tku = new TKUCourse.CHT();
//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
Console.WriteLine("Attempt login...");
}
//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
Console.WriteLine("Add Successfully!!");
}
else{
Console.WriteLine("Add Failed!!");
}
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
Console.WriteLine("Drop Successfully!!");
}
else{
Console.WriteLine("Drop Failed!!");
}TKUCourse.ENG tku = new TKUCourse.ENG();
//If success login, return true, else return false
while (tku.Login("your_student_id", "your_student_password") == false){
Console.WriteLine("Attempt login...");
}
//If add successfully, return true, else return false
if (tku.AddCourse("1234")){
Console.WriteLine("Add Successfully!!");
}
else{
Console.WriteLine("Add Failed!!");
}
//If drop successfully, return true, else return false
if (tku.DropCourse("1234")){
Console.WriteLine("Drop Successfully!!");
}
else{
Console.WriteLine("Drop Failed!!");
}You can get more examples from our GitHub.