This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go('https://yp.vn'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnDecode_Click(object sender, System.EventArgs e) | |
{ | |
using (var openDlg = new OpenFileDialog()) | |
{ | |
openDlg.Multiselect = false; | |
if (openDlg.ShowDialog(this) == DialogResult.OK) | |
{ | |
string fileName = openDlg.FileName; | |
if (!File.Exists(fileName)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnEncode_Click(object sender, System.EventArgs e) | |
{ | |
if (string.IsNullOrEmpty(tbxData.Text)) | |
{ | |
MessageBox.Show("Vui lòng nhập nội dung cần mã hóa", | |
"QR Code Generator"); | |
return; | |
} | |
var barcodeWriter = new BarcodeWriter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Open Website | |
go("http://vnexpress.net/"); | |
sleep(5, false); | |
click("/html/body/div[3]/div[2]/div/ul/li[2]/a"); | |
sleep(5, false); | |
for(i = 1; i <= 25; i++) | |
{ | |
var text = extract("/html/body/div[4]/div[3]/div/div/div[3]/div/div/ul/li["+ i +"]/div/div/a", "text"); | |
//Create File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go('http://www.yp.vn/business/vn/tabid/493/ctl/s/mid/1835/language/en-US/Default.aspx'); | |
var wait = 15; | |
var tukhoa = 'AN TOÀN - HỆ THỐNG & THIẾT BỊ'; | |
var thanhpho = 'Hà Nội'; | |
var taptin = 'D:\\doanhnghiep.txt'; | |
sleep(wait, false); | |
fill("Kwords", tukhoa); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asyncDeltaManager.add_endRequest(function() { | |
//Your code | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnGenerateQRCodeFromExcel_Click(object sender, System.EventArgs e) | |
{ | |
openFileDialog.InitialDirectory = Application.StartupPath + "\\Excels"; | |
openFileDialog.Filter = "Excel files|*.xls;*.xlsx"; | |
var fileDialog = openFileDialog.ShowDialog(); | |
if (fileDialog == System.Windows.Forms.DialogResult.OK) | |
{ | |
var filePath = openFileDialog.FileName; | |
var ext = Path.GetExtension(filePath); |