<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web auto - HaiNH</title>
	<atom:link href="https://hainh.dev/tag/web-auto/feed/" rel="self" type="application/rss+xml" />
	<link>https://hainh.dev</link>
	<description></description>
	<lastBuildDate>Fri, 11 Oct 2019 10:52:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://hainh.dev/wp-content/uploads/2025/10/cropped-logomyblog-32x32.png</url>
	<title>web auto - HaiNH</title>
	<link>https://hainh.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">249252746</site>	<item>
		<title>Hệ thống theo dõi và tương tác website thời gian thực</title>
		<link>https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc</link>
					<comments>https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/#respond</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Fri, 11 Oct 2019 10:52:00 +0000</pubDate>
				<category><![CDATA[Dự án]]></category>
		<category><![CDATA[công cụ]]></category>
		<category><![CDATA[dự án]]></category>
		<category><![CDATA[selenium webdriver]]></category>
		<category><![CDATA[web auto]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=2929</guid>

					<description><![CDATA[<p>Hệ thống này là các con bot luôn theo dõi trang web, thu thập thông tin, phân tích và thực hiện một số thao tác thay con người tốc độ nhanh.</p>
<p>The post <a href="https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/">Hệ thống theo dõi và tương tác website thời gian thực</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hệ thống này là các con bot luôn theo dõi trang web, thu thập thông tin, phân tích và thực hiện một số thao tác thay con người tốc độ nhanh. </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="978" height="703" data-attachment-id="2930" data-permalink="https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/123-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2020/05/123-1.png" data-orig-size="978,703" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="123" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2020/05/123-1-300x216.png" data-large-file="https://hainh.dev/wp-content/uploads/2020/05/123-1.png" src="https://hainh.dev/wp-content/uploads/2020/05/123-1.png" alt="" class="wp-image-2930" srcset="https://hainh.dev/wp-content/uploads/2020/05/123-1.png 978w, https://hainh.dev/wp-content/uploads/2020/05/123-1-300x216.png 300w, https://hainh.dev/wp-content/uploads/2020/05/123-1-768x552.png 768w" sizes="(max-width: 978px) 100vw, 978px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="621" height="737" data-attachment-id="2931" data-permalink="https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/day1_17h00/" data-orig-file="https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1.png" data-orig-size="621,737" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="day1_17h00" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1-253x300.png" data-large-file="https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1.png" src="https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1.png" alt="" class="wp-image-2931" srcset="https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1.png 621w, https://hainh.dev/wp-content/uploads/2020/05/day1_17h00-1-253x300.png 253w" sizes="(max-width: 621px) 100vw, 621px" /></figure></div><p>The post <a href="https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/">Hệ thống theo dõi và tương tác website thời gian thực</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/he-thong-theo-doi-va-tuong-tac-website-thoi-gian-thuc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2929</post-id>	</item>
		<item>
		<title>Chương trình tự động kháng kênh youtube</title>
		<link>https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=chuong-trinh-tu-dong-khang-kenh-youtube</link>
					<comments>https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/#respond</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Sat, 09 Mar 2019 13:18:12 +0000</pubDate>
				<category><![CDATA[Dự án]]></category>
		<category><![CDATA[công cụ]]></category>
		<category><![CDATA[dự án]]></category>
		<category><![CDATA[selenium webdriver]]></category>
		<category><![CDATA[web auto]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=2533</guid>

					<description><![CDATA[<p>Nạp danh sách email, nội dung từ file excel Cài đặt một số tham số cấu hình chương trình.</p>
<p>The post <a href="https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/">Chương trình tự động kháng kênh youtube</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" data-attachment-id="2534" data-permalink="https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/khang-kenh-1/" data-orig-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1.png" data-orig-size="871,470" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="khang kenh 1" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1-300x162.png" data-large-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1.png" class="aligncenter size-full wp-image-2534" src="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1.png" alt="" width="871" height="470" srcset="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1.png 871w, https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1-300x162.png 300w, https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-1-768x414.png 768w" sizes="(max-width: 871px) 100vw, 871px" /></p>
<p>Nạp danh sách email, nội dung từ file excel</p>
<p><img loading="lazy" decoding="async" data-attachment-id="2535" data-permalink="https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/khang-kenh-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2.png" data-orig-size="636,377" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="khang kenh 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2-300x178.png" data-large-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2.png" class="aligncenter size-full wp-image-2535" src="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2.png" alt="" width="636" height="377" srcset="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2.png 636w, https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-2-300x178.png 300w" sizes="(max-width: 636px) 100vw, 636px" /></p>
<p><img loading="lazy" decoding="async" data-attachment-id="2536" data-permalink="https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/khang-kenh-3/" data-orig-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3.png" data-orig-size="871,470" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="khang kenh 3" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3-300x162.png" data-large-file="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3.png" class="aligncenter size-full wp-image-2536" src="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3.png" alt="" width="871" height="470" srcset="https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3.png 871w, https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3-300x162.png 300w, https://hainh.dev/wp-content/uploads/2019/03/khang-kenh-3-768x414.png 768w" sizes="(max-width: 871px) 100vw, 871px" /></p>
<p>Cài đặt một số tham số cấu hình chương trình.</p><p>The post <a href="https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/">Chương trình tự động kháng kênh youtube</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/chuong-trinh-tu-dong-khang-kenh-youtube/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2533</post-id>	</item>
		<item>
		<title>Chương trình tự động subscribe kênh youtube hàng loạt</title>
		<link>https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat</link>
					<comments>https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/#respond</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Thu, 28 Feb 2019 04:30:23 +0000</pubDate>
				<category><![CDATA[Dự án]]></category>
		<category><![CDATA[dự án]]></category>
		<category><![CDATA[selenium webdriver]]></category>
		<category><![CDATA[web auto]]></category>
		<category><![CDATA[webbrowser]]></category>
		<category><![CDATA[youtube tool]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=2525</guid>

					<description><![CDATA[<p>Chương trình có chức năng auto thực hiện theo kịch bản như: + Load folder chứa các shortcut coccoc để nạp các profile coccoc vào list + Mở cococc duyệt qua danh sách các profile đó và mở list video youtube + Xem từng video có trong danh sách đó theo thời gian cài đặt...</p>
<p>The post <a href="https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/">Chương trình tự động subscribe kênh youtube hàng loạt</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Chương trình có chức năng auto thực hiện theo kịch bản như:</p>
<p>+ Load folder chứa các shortcut coccoc để nạp các profile coccoc vào list<br />
+ Mở cococc duyệt qua danh sách các profile đó và mở list video youtube<br />
+ Xem từng video có trong danh sách đó theo thời gian cài đặt và bấm subscribe kênh<br />
+ Quay lại lặp từng video có trong list<br />
+ Hết danh sách reset usb 3g để nhận IP mới<br />
+ Đóng coccoc và lặp lại với profile tiếp theo &#8230;</p>
<p><img loading="lazy" decoding="async" data-attachment-id="2527" data-permalink="https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/auto-sub-youtube/" data-orig-file="https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube.png" data-orig-size="762,703" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="auto sub youtube" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube-300x277.png" data-large-file="https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube.png" class="aligncenter size-full wp-image-2527" src="https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube.png" alt="" width="762" height="703" srcset="https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube.png 762w, https://hainh.dev/wp-content/uploads/2019/02/auto-sub-youtube-300x277.png 300w" sizes="(max-width: 762px) 100vw, 762px" /></p><p>The post <a href="https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/">Chương trình tự động subscribe kênh youtube hàng loạt</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/chuong-trinh-tu-dong-subscribe-kenh-youtube-hang-loat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2525</post-id>	</item>
		<item>
		<title>Sử dụng GeckoFx thay thế cho webbrowser control</title>
		<link>https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=su-dung-geckofx-thay-the-cho-webbrowser-control</link>
					<comments>https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/#respond</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Sun, 04 Nov 2018 11:01:33 +0000</pubDate>
				<category><![CDATA[Lập trình ứng dụng]]></category>
		<category><![CDATA[geckofx]]></category>
		<category><![CDATA[lập trình ứng dụng]]></category>
		<category><![CDATA[web auto]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=992</guid>

					<description><![CDATA[<p>Hi all, Trong winform thì control Webbrowser sẽ sử dụng trình duyệt IE mặc định của máy tính để hiển thị, tuy nhiên nếu máy tính sử dụng chương trình của chúng ta là XP hay win 7 thì có thể nó đang sử dụng IE 7 hoặc 8, dẫn đến việc hiển thị CSS,...</p>
<p>The post <a href="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/">Sử dụng GeckoFx thay thế cho webbrowser control</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi all,</p>
<p>Trong winform thì control Webbrowser sẽ sử dụng trình duyệt IE mặc định của máy tính để hiển thị, tuy nhiên nếu máy tính sử dụng chương trình của chúng ta là XP hay win 7 thì có thể nó đang sử dụng IE 7 hoặc 8, dẫn đến việc hiển thị CSS, html5 không tốt hoặc bị trang web thông báo đang sử dụng trình duyệt cũ. Ngoài ra thì cái webbrowser control mặc định của nó quá cùi bắp, cách đây tầm 3 &#8211; 4 năm mình phải thực hiện một số công việc automation trên web nên đã tìm ra cách thay thế nó bằng firefox thông qua thư viện GeckoFx.</p>
<p>Đây là một thư viện mã nguồn mở, các bạn có thể tìm thêm thông tin tại đây:  <a href="https://bitbucket.org/geckofx/geckofx/wiki/Home">https://bitbucket.org/geckofx/geckofx/wiki/Home</a></p>
<p>Để cài đặt vào project các bạn có thể thông qua nuget như hình dưới đây:</p>
<p><img loading="lazy" decoding="async" data-attachment-id="993" data-permalink="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/geckofx-1/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1.png" data-orig-size="1341,875" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GeckoFx 1" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1-300x196.png" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1-1024x668.png" class="aligncenter size-full wp-image-993" src="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1.png" alt="" width="1341" height="875" srcset="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1.png 1341w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1-300x196.png 300w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1-1024x668.png 1024w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-1-768x501.png 768w" sizes="(max-width: 1341px) 100vw, 1341px" /></p>
<p style="text-align: center;">Tìm từ khóa geckofx và install vào project.</p>
<p>Sau khi cài đặt xong các bạn vào thư mục đường dẫn project của các bạn và vào tiếp &#8220;packages\GeckoFX&#8230;..&#8221;, copy thư mục Output (Đây là thư mục chứa các thư viện xulrunner xử lý và hiển thị nội dung trang web) vào thư mục bin project của bạn và đổi tên, vd của mình là &#8220;firefox&#8221; như hình dưới đây:</p>
<p><img loading="lazy" decoding="async" data-attachment-id="994" data-permalink="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/geckofx-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2.jpg" data-orig-size="471,274" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GeckoFx 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2-300x175.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2.jpg" class="aligncenter size-full wp-image-994" src="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2.jpg" alt="" width="471" height="274" srcset="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2.jpg 471w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-2-300x175.jpg 300w" sizes="(max-width: 471px) 100vw, 471px" /></p>
<p>Tiếp đến Add Reference file Geckofx-Winforms.dll trong thư mục &#8220;\packages\GeckoFX.1.0.5\lib&#8221; vào toolbox sau đó kéo vào form vị trí bạn cần thiết kế.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="995" data-permalink="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/geckofx-3/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3.jpg" data-orig-size="1341,875" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GeckoFx 3" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3-300x196.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3-1024x668.jpg" class="aligncenter size-full wp-image-995" src="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3.jpg" alt="" width="1341" height="875" srcset="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3.jpg 1341w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3-300x196.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3-1024x668.jpg 1024w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-3-768x501.jpg 768w" sizes="(max-width: 1341px) 100vw, 1341px" /></p>
<p>Giờ mình sẽ viết code để GeckoWebBrowser mở trang web tại sự kiện form load như sau:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="csharp" data-enlighter-title="Ví dụ điều hướng trang web">public Form1()
  {
    InitializeComponent();
    //Khai báo đường dẫn thư mục xulrunner.
    Gecko.Xpcom.Initialize(Application.StartupPath + "\\firefox");
  }

  private void Form1_Load(object sender, EventArgs e)
  {
    //Chuyển hướng đến trang google.
    geckoWebBrowser1.Navigate("https://google.com.vn");
  }
}</pre>
<p><img loading="lazy" decoding="async" data-attachment-id="997" data-permalink="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/geckofx-0/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0.jpg" data-orig-size="757,490" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GeckoFx 0" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0-300x194.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0.jpg" class="aligncenter size-full wp-image-997" src="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0.jpg" alt="" width="757" height="490" srcset="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0.jpg 757w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-0-300x194.jpg 300w" sizes="(max-width: 757px) 100vw, 757px" /></p>
<p><span style="color: #ff0000;"><strong>Chú ý:</strong></span> Nếu bạn dùng visual studio 2017 có thể sẽ xảy ra lỗi khi build liên quan đến &#8220;CodeTaskFactory&#8221; và &#8220;Microsoft.Build.Tasks.v15.0.dll&#8221;. Nguyên nhân là do thư viện này họ sử dụng visual studio 2013 để build thì phải. Giải pháp khắc phục việc này là chuyển sang dùng thư viện geckofx45 cho phiên bản .NET 4.5 trở lên, hoặc khi cài xong nuget, các bạn copy toàn bộ folder ouput và lib của nó ra ngoài, uninstall nó ra và add các thư viện Geckofx-Core.dll, Geckofx-Winforms.dll lại.</p>
<p>Trong quá trình chạy debug nếu xuất hiện lỗi thì bạn nên chuyển project platform target về x64 hoặc x86 phù hợp nhé.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="996" data-permalink="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/geckofx-4/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4.jpg" data-orig-size="730,450" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GeckoFx 4" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4-300x185.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4.jpg" class="aligncenter size-full wp-image-996" src="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4.jpg" alt="" width="730" height="450" srcset="https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4.jpg 730w, https://hainh.dev/wp-content/uploads/2018/11/GeckoFx-4-300x185.jpg 300w" sizes="(max-width: 730px) 100vw, 730px" /></p>
<p>Mình có làm 1 video từ hồi 2016, các bạn có thể tham khảo hình dung cho dễ nhé:</p>
<p style="text-align: center;">[su_youtube url=&#8221;https://youtu.be/_6O5zW5qa-Q&#8221;]</p>
<p>Về cơ bản thì các sự kiện, thao tác với DOM document của nó khá giống với webbrower control. Mình sẽ có bài hướng dẫn về việc thao tác với DOM để auto 1 số trang web nhé, vd: như tự động đăng nhập, điền biểu mẫu, tìm kiếm nội dung trong trang web vv &#8230;</p>
<p>Đây là 1 cái <a href="https://hainh.dev/chuong-trinh-ket-xuat-tin-nhan-facebook-messenger/">tool</a> mình làm có sử dụng geckofx để đăng nhập facebook sau đó kết xuất nội dung ra ngoài, mã nguồn của nó mình sẽ tìm lại nếu các bạn cần nhé.</p>
<p>&nbsp;</p><p>The post <a href="https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/">Sử dụng GeckoFx thay thế cho webbrowser control</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/su-dung-geckofx-thay-the-cho-webbrowser-control/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">992</post-id>	</item>
	</channel>
</rss>
