Inetget
Author: C | 2025-04-23
INetGet Download. INetGet (โปรแกรม INetGet ดาวน์โหลดไฟล์ผ่าน บรรทัดคำสั่ง CLI ฟรี): สำหรับโปรแกรมนี้มีชื่อว่า โปรแกรม INetGet เป็นโปรแกรมขนาดเล็ก ที่เป็น โปรแกรมช่วยดาวน์
InetGet HTTP FTP InetGet ( URL
That you are viewing in the web page can be saved by one mouse click. In addition, all large images under... Episode Downloader 2.2.0 Episode Downloader is designed to help you download free episodes, TV shows and Anime as you want. By entering keywords of the episodes you want to download, you can get a list of related... Freecorder 5.0 Download video, record audio, and convert files from thousands of Web sites, including YouTube. Freecorder includes an audio recorder to record from ANY web site, a handy file converter, and a... 1st Webcollector 1.68 1st Webcollector is a multi-threads software product for downloading all pictures and any other kinds of files specified by extension from a website. It will make the best use of your bandwidth,... Break Downloader 1.452 Download Break allows its customers to download the video they liked at break.com just by clicking one button in their browser. It's free to install and it supports such file formats as .avi and... CDAID 3.20 CD Audio Information Downloader (CDAID) lets you obtain CD information (i.e. artist, song title, etc.) from freedb over the Internet. No more guessing what the title of song 4 is or trying to... iNetGet 2.3.3 iNetGet is a download utility that gives you convenience and flexibility in downloading on the Internet.A key feature of iNetGet is its ability to resume broken downloads, after checking date and... DownloadStudio 6.0.3 DownloadStudio is an ultra-fast download manager that contains over 12 specialized downloading tools. It can download programs, games, flash video, photos, music, movies, podcasts, RSS feeds and... Download Accelerator Plus 9.7.0.7 Download Accelerator Plus (DAP) 9.7- The fastest and most popular Download Manager with 265 Million+ installs. DAP provides the fastest download speeds and a cool Video Downloader to easily... Picture of the Day 2.0 Automatically downloads images from "Picture of the Day" sites, such as the many "Cartoon of the Day" or "Babe of the Day" sites and displays then as your desktop wallpaper, also includes support... Software: 41 to 60 of 154 | Pages: 1 2 3 4 5 6 7 8 All | Freeware
INetGet/INetGet.rcc at master lordmulder/INetGet - GitHub
Gets the mouse cursor position relative to GUI window. GUIGetMsg Polls the GUI to see if any events have occurred. GUIGetStyle Retrieves the styles of a GUI window. GUIRegisterMsg Register a user defined function for a known Windows Message ID (WM_MSG). GUISetAccelerators Sets the accelerator table to be used in a GUI window. GUISetBkColor Sets the background color of the GUI window. GUISetCoord Sets absolute coordinates for the next control. GUISetCursor Sets the mouse cursor icon for a GUI window. GUISetFont Sets the default font for a GUI window. GUISetHelp Sets an executable file that will be run when F1 is pressed. GUISetIcon Sets the icon used in a GUI window. GUISetOnEvent Defines a user function to be called when a system button is clicked. GUISetState Changes the state of a GUI window. GUISetStyle Changes the styles of a GUI window. GUIStartGroup Defines that any subsequent controls that are created will be "grouped" together. GUISwitch Switches the current window used for GUI functions. Hex Returns a string representation of an integer or of a binary type converted to hexadecimal. HotKeySet Sets a hotkey that calls a user function. HttpSetProxy Sets the internet proxy to use for http access. HttpSetUserAgent Sets the HTTP user-agent string which is sent with all Inet requests. HWnd Converts an expression into an HWND handle. InetClose Closes a handle returned from InetGet(). InetGet Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. InetGetInfo Returns detailed data for a handle returned from InetGet(). InetGetSize Returns the size (in bytes) of a file located on the internet. InetRead Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. IniDelete Deletes a value from a standard format .ini file. IniRead Reads a value from a standard format .ini file. IniReadSection Reads all key/value pairs from a section in a standard format .ini file. IniReadSectionNames Reads all sections in a standard format .ini file. IniRenameSection Renames a section in a standard format .ini file. IniWrite Writes a value to a standard format .ini file. IniWriteSection Writes a section to a standard format .ini file. InputBox Displays an input box to ask the user to enter a string. Int Returns the integer (whole number) representation of an expression. IsAdmin Checks if the current user has full administrator privileges. IsArray Checks if a variable is an array type. IsBinary Checks if a variable or expressionInetget : inetget.com - nbspInformationen zum Thema inetget.
. INetGet Download. INetGet (โปรแกรม INetGet ดาวน์โหลดไฟล์ผ่าน บรรทัดคำสั่ง CLI ฟรี): สำหรับโปรแกรมนี้มีชื่อว่า โปรแกรม INetGet เป็นโปรแกรมขนาดเล็ก ที่เป็น โปรแกรมช่วยดาวน์GitHub - lordmulder/INetGet: INetGet - Lightweight command
I have mixed feelings with the Opt("TCPTimeout") usefulness. Also Trancexx recently answered she thought the option abandonned long ago.Here's why I have problem with the Inet functions. I use them routinely (several times a day) to update my local database with new tracking events for the parcels we ship worldwide. One of the tracking site I use can be _very_ slow to produce an answer: I'seen response time > 60s. I guess the transaction I'm using is buried deep in their server forest and given lowest priority. I'm anyway extremelly happy it answers at all.I have tried InetGetSource, InetGet and InetRead with about the same results for this particular site. The issue is that sometimes the site simply won't answer nor reset the connection. In this case, all three functions just hang, hanging the entire script as well.I tried AutoItSetOption('TCPTimeout', $value) with various values to absolutely no avail. Therefore I suspect Trancexx is right: this "option" seems to be no-op.Another point closely related to the topic: the only way to get back from the hung condition exposed above is to use a background InetGet() followed by a timing loop.Of course you never know when a site may cause a hung Inet connection. You have to protect against such and adopt the "monitored backgroud" version.But then since this is the only way to invoke Inet* without risk, why isn't such code included in the native functions?How do _you_ protect against hung condition and do you think an integrated timeout with optional value would be useful? Edited February 13, 2010 by jchdGitHub - lordmulder/INetGet: INetGet - Lightweight command-line
ISkysoft Free Video Downloader for Mac Tải video trên Mac iSkysoft Free Video Downloader for Mac cho phép người dùng Mac dễ dàng tải video từ YouTube. Xếp hạng: 4 2 Phiếu bầuSử dụng: Miễn phí 1.997 Tải về iNetGet for Mac Tiện ích tải video cho Mac iNetGet for Mac là một phần mềm hữu ích hỗ trợ người dùng tải tập tin về từ Internet dễ dàng và nhanh chóng hơn bao giờ hết. Xếp hạng: 3 3 Phiếu bầuSử dụng: Dùng thử 1.988 Tải về RecordPad Sound Recorder RecordPad là một chương trình ghi âm cho Windows, Mac OS X, Linux, Pocket PC và điện thoại thông minh. Nó cho phép việc ghi âm vào một máy tính đơn giản hơn bao giờ hết. Xếp hạng: 4 3 Phiếu bầuSử dụng: Dùng thử 1.343 Tải về Kigo Video Downloader for Mac Phần mềm tải video cho Mac Kigo Video Downloader for Mac là một công cụ hoàn toàn miễn phí cho phép người dùng tải và chuyển đổi video nhanh chóng và mạnh mẽ. Xếp hạng: 3 1 Phiếu bầuSử dụng: Miễn phí 455 Tải về Ummy Video Downloader cho Mac Ứng dụng tải video & nhạc cho Mac Ummy Video Downloader là ứng dụng tải video có độ phân giải cao từ YouTube hoặc lưu các bài hát ưa thích thành các tập tin âm thanh có định dạng MP3. Đây là ứng dụng tải video cho Mac dễ sử dụng với nhiều tính năng hữu ích. Xếp hạng: 1 3 Phiếu bầuSử dụng: Miễn phí 285 Tải về Airy for Mac Hỗ trợ tải video trực tuyến cho Mac Airy là một ứng dụng hỗ trợ tải video rất đơn giản nhưng mạnh mẽ, giúp bạn lưu lại mọi video từ YouTube chỉ với vài cú nhấp chuột. Xếp hạng: 4 2 Phiếu bầuSử dụng: Dùng thử 242 Tải về Download Shuttle cho Mac Ứng dụng tải file siêu nhanh cho Mac Download Shuttle là một trình quản lý và tải file tốc độ hoàn toàn miễn phí dành cho Mac. Nhờ đó, người dùng rút ngắn được đáng kể thời gian chờ khi tải file nặng về máy. Xếp hạng: 5 1 Phiếu bầuSử dụng: Miễn phí 202 Tải về GetTube for Mac Hỗ trợ tải video cho Mac GetTube for Mac là một phần mềm giúp người dùng tải video YouTube về Mac,INetGet (โปรแกรม INetGet ดาวน์โหลดไฟล์ผ่าน บรรทัดคำสั่ง CLI ฟรี)
iNetGet 2.3.3 Free Download - iNetGet is a download utility that
源处: 这个函数的作用是启动自己的子进程,然后执行指定的函数。比方说如果你想另开一个进程执行“fuck”函数,代码写_CoProc("fuck")就行了。这个函数会返回子进程的PID,在对子进程进行操作时会用到这个PID。另外,你可以无限制开启子进程,且每个子进程都可以建立完全独立的GUI。_ProcSuspend() & _ProcResume() 暂停/恢复进程。如果你开了一个子进程专门下载文件,就可以利用这两个函数暂停/继续下载。范例:_ProcSuspend(@PID) 。_CloseHandle() 关闭子进程。范例:_CloseHandle(@PID) 。_CoProcSend() 向指定进程发送消息。当子进程有新的信息(比如完成下载)需要提示母进程时,就可以使用这个函数。范例:_CoProcSend($PID, "发送的消息内容")。 _CoProcReciver() 注册一个函数用于接收其他进程用_CoProcSend函数传递过来的消息,每当收到消息时注册的函数就会被执行。需要注意的是,被注册的函数必须有且只有一个自定义参数,而传递的参数里就是发送过来的消息。范例:_CoProcReciver("函数名称")。 例子:#NoTrayIcon#include "CoProc.au3"#region 主程序区域#include $Form1 = GUICreate("Multiple File Download", 622, 119, 192, 125)GUICtrlCreateLabel(" (1Mb)", 8, 8)GUICtrlCreateLabel(" (20Mb)", 8, 48)$Progress1 = GUICtrlCreateProgress(8, 24, 601, 17)$Progress2 = GUICtrlCreateProgress(8, 64, 601, 17)$Button1 = GUICtrlCreateButton("Pause", 8, 88, 81, 25)$Button2 = GUICtrlCreateButton("Resume", 96, 88, 81, 25)$iPidSmall = _CoProc("Small") ;开启子进程,子进程将执行Small()函数,$iPidSmall得到的是子进程的PID$iPidBig = _CoProc("Big")GUISetState(@SW_SHOW)_CoProcReciver("Reciver") ;注册Reciver()函数来接收子进程传递过来的消息While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 _ProcSuspend($iPidSmall) ;暂停$iPidSmall这个子进程 _ProcSuspend($iPidBig) Case $msg = $Button2 _ProcResume($iPidSmall) ;恢复$iPidSmall子进程 _ProcResume($iPidBig) Case Else ; EndSelectWEndFileDelete(@TempDir & "\smalltest.tmp")FileDelete(@TempDir & "\bigtest.tmp")ExitFunc Reciver($vParameter) ;$vParameter里就是子进程发来的消息 $aParam = StringSplit($vParameter,"|") If $aParam[1] = "small" Then GUICtrlSetData($Progress1,$aParam[2]) If $aParam[1] = "big" Then GUICtrlSetData($Progress2,$aParam[2])EndFunc#endregion #region Small()函数里是'Small file'子进程的所要执行的代码Func Small() $url = " $size = InetGetSize($url) InetGet($url,@TempDir & "\smalltest.tmp",1,1) While @InetGetActive And ProcessExists($gi_CoProcParent) ;在下载时不断向父进程发送下载进度,$gi_CoProcParent是父进程的PID,这个变量是函数自己建立的 _CoProcSend($gi_CoProcParent,"small|" & Round(@InetGetBytesRead / $size * 100,0)) Sleep(250) WEnd _CoProcSend($gi_CoProcParent,"small|100")EndFunc#endregion#region 'Big file'子进程执行的代码Func Big() $url = " $size = InetGetSize($url) InetGet($url,@TempDir & "\bigtest.tmp",1,1) While @InetGetActive And ProcessExists($gi_CoProcParent) _CoProcSend($gi_CoProcParent,"big|" & Round(@InetGetBytesRead / $size * 100,0)) Sleep(250) WEnd _CoProcSend($gi_CoProcParent,"big|100")EndFunc#endregion注意事项: 子进程发送消息时需要母进程的PID,而母进程的PID储存在$gi_CoProcParentli里 子进程可以正常使用脚本里的所有自定义函数 在子进程执行的那个函数里你不能再#include函数库或是用Func定义函数 对一个子进程不要重复使用_ProcSuspend()和_ProcResume() 函数,否则会让子进程无响应 posted on 2008-01-15 12:07 疾风随影 阅读(6428) 评论(0) 编辑 收藏 引用 所属分类: AutoIT column. INetGet Download. INetGet (โปรแกรม INetGet ดาวน์โหลดไฟล์ผ่าน บรรทัดคำสั่ง CLI ฟรี): สำหรับโปรแกรมนี้มีชื่อว่า โปรแกรม INetGet เป็นโปรแกรมขนาดเล็ก ที่เป็น โปรแกรมช่วยดาวน์ INetGet - Lightweight command-line front-end to WinInet API - INetGet/INetGet.rcc at master lordmulder/INetGet
Download inetget - Download.com.vn
Download iNetGet 2.3.3
. INetGet Download. INetGet (โปรแกรม INetGet ดาวน์โหลดไฟล์ผ่าน บรรทัดคำสั่ง CLI ฟรี): สำหรับโปรแกรมนี้มีชื่อว่า โปรแกรม INetGet เป็นโปรแกรมขนาดเล็ก ที่เป็น โปรแกรมช่วยดาวน์inetget for mac - Download.com.vn
Comments
That you are viewing in the web page can be saved by one mouse click. In addition, all large images under... Episode Downloader 2.2.0 Episode Downloader is designed to help you download free episodes, TV shows and Anime as you want. By entering keywords of the episodes you want to download, you can get a list of related... Freecorder 5.0 Download video, record audio, and convert files from thousands of Web sites, including YouTube. Freecorder includes an audio recorder to record from ANY web site, a handy file converter, and a... 1st Webcollector 1.68 1st Webcollector is a multi-threads software product for downloading all pictures and any other kinds of files specified by extension from a website. It will make the best use of your bandwidth,... Break Downloader 1.452 Download Break allows its customers to download the video they liked at break.com just by clicking one button in their browser. It's free to install and it supports such file formats as .avi and... CDAID 3.20 CD Audio Information Downloader (CDAID) lets you obtain CD information (i.e. artist, song title, etc.) from freedb over the Internet. No more guessing what the title of song 4 is or trying to... iNetGet 2.3.3 iNetGet is a download utility that gives you convenience and flexibility in downloading on the Internet.A key feature of iNetGet is its ability to resume broken downloads, after checking date and... DownloadStudio 6.0.3 DownloadStudio is an ultra-fast download manager that contains over 12 specialized downloading tools. It can download programs, games, flash video, photos, music, movies, podcasts, RSS feeds and... Download Accelerator Plus 9.7.0.7 Download Accelerator Plus (DAP) 9.7- The fastest and most popular Download Manager with 265 Million+ installs. DAP provides the fastest download speeds and a cool Video Downloader to easily... Picture of the Day 2.0 Automatically downloads images from "Picture of the Day" sites, such as the many "Cartoon of the Day" or "Babe of the Day" sites and displays then as your desktop wallpaper, also includes support... Software: 41 to 60 of 154 | Pages: 1 2 3 4 5 6 7 8 All | Freeware
2025-04-09Gets the mouse cursor position relative to GUI window. GUIGetMsg Polls the GUI to see if any events have occurred. GUIGetStyle Retrieves the styles of a GUI window. GUIRegisterMsg Register a user defined function for a known Windows Message ID (WM_MSG). GUISetAccelerators Sets the accelerator table to be used in a GUI window. GUISetBkColor Sets the background color of the GUI window. GUISetCoord Sets absolute coordinates for the next control. GUISetCursor Sets the mouse cursor icon for a GUI window. GUISetFont Sets the default font for a GUI window. GUISetHelp Sets an executable file that will be run when F1 is pressed. GUISetIcon Sets the icon used in a GUI window. GUISetOnEvent Defines a user function to be called when a system button is clicked. GUISetState Changes the state of a GUI window. GUISetStyle Changes the styles of a GUI window. GUIStartGroup Defines that any subsequent controls that are created will be "grouped" together. GUISwitch Switches the current window used for GUI functions. Hex Returns a string representation of an integer or of a binary type converted to hexadecimal. HotKeySet Sets a hotkey that calls a user function. HttpSetProxy Sets the internet proxy to use for http access. HttpSetUserAgent Sets the HTTP user-agent string which is sent with all Inet requests. HWnd Converts an expression into an HWND handle. InetClose Closes a handle returned from InetGet(). InetGet Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. InetGetInfo Returns detailed data for a handle returned from InetGet(). InetGetSize Returns the size (in bytes) of a file located on the internet. InetRead Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. IniDelete Deletes a value from a standard format .ini file. IniRead Reads a value from a standard format .ini file. IniReadSection Reads all key/value pairs from a section in a standard format .ini file. IniReadSectionNames Reads all sections in a standard format .ini file. IniRenameSection Renames a section in a standard format .ini file. IniWrite Writes a value to a standard format .ini file. IniWriteSection Writes a section to a standard format .ini file. InputBox Displays an input box to ask the user to enter a string. Int Returns the integer (whole number) representation of an expression. IsAdmin Checks if the current user has full administrator privileges. IsArray Checks if a variable is an array type. IsBinary Checks if a variable or expression
2025-04-06I have mixed feelings with the Opt("TCPTimeout") usefulness. Also Trancexx recently answered she thought the option abandonned long ago.Here's why I have problem with the Inet functions. I use them routinely (several times a day) to update my local database with new tracking events for the parcels we ship worldwide. One of the tracking site I use can be _very_ slow to produce an answer: I'seen response time > 60s. I guess the transaction I'm using is buried deep in their server forest and given lowest priority. I'm anyway extremelly happy it answers at all.I have tried InetGetSource, InetGet and InetRead with about the same results for this particular site. The issue is that sometimes the site simply won't answer nor reset the connection. In this case, all three functions just hang, hanging the entire script as well.I tried AutoItSetOption('TCPTimeout', $value) with various values to absolutely no avail. Therefore I suspect Trancexx is right: this "option" seems to be no-op.Another point closely related to the topic: the only way to get back from the hung condition exposed above is to use a background InetGet() followed by a timing loop.Of course you never know when a site may cause a hung Inet connection. You have to protect against such and adopt the "monitored backgroud" version.But then since this is the only way to invoke Inet* without risk, why isn't such code included in the native functions?How do _you_ protect against hung condition and do you think an integrated timeout with optional value would be useful? Edited February 13, 2010 by jchd
2025-03-31ISkysoft Free Video Downloader for Mac Tải video trên Mac iSkysoft Free Video Downloader for Mac cho phép người dùng Mac dễ dàng tải video từ YouTube. Xếp hạng: 4 2 Phiếu bầuSử dụng: Miễn phí 1.997 Tải về iNetGet for Mac Tiện ích tải video cho Mac iNetGet for Mac là một phần mềm hữu ích hỗ trợ người dùng tải tập tin về từ Internet dễ dàng và nhanh chóng hơn bao giờ hết. Xếp hạng: 3 3 Phiếu bầuSử dụng: Dùng thử 1.988 Tải về RecordPad Sound Recorder RecordPad là một chương trình ghi âm cho Windows, Mac OS X, Linux, Pocket PC và điện thoại thông minh. Nó cho phép việc ghi âm vào một máy tính đơn giản hơn bao giờ hết. Xếp hạng: 4 3 Phiếu bầuSử dụng: Dùng thử 1.343 Tải về Kigo Video Downloader for Mac Phần mềm tải video cho Mac Kigo Video Downloader for Mac là một công cụ hoàn toàn miễn phí cho phép người dùng tải và chuyển đổi video nhanh chóng và mạnh mẽ. Xếp hạng: 3 1 Phiếu bầuSử dụng: Miễn phí 455 Tải về Ummy Video Downloader cho Mac Ứng dụng tải video & nhạc cho Mac Ummy Video Downloader là ứng dụng tải video có độ phân giải cao từ YouTube hoặc lưu các bài hát ưa thích thành các tập tin âm thanh có định dạng MP3. Đây là ứng dụng tải video cho Mac dễ sử dụng với nhiều tính năng hữu ích. Xếp hạng: 1 3 Phiếu bầuSử dụng: Miễn phí 285 Tải về Airy for Mac Hỗ trợ tải video trực tuyến cho Mac Airy là một ứng dụng hỗ trợ tải video rất đơn giản nhưng mạnh mẽ, giúp bạn lưu lại mọi video từ YouTube chỉ với vài cú nhấp chuột. Xếp hạng: 4 2 Phiếu bầuSử dụng: Dùng thử 242 Tải về Download Shuttle cho Mac Ứng dụng tải file siêu nhanh cho Mac Download Shuttle là một trình quản lý và tải file tốc độ hoàn toàn miễn phí dành cho Mac. Nhờ đó, người dùng rút ngắn được đáng kể thời gian chờ khi tải file nặng về máy. Xếp hạng: 5 1 Phiếu bầuSử dụng: Miễn phí 202 Tải về GetTube for Mac Hỗ trợ tải video cho Mac GetTube for Mac là một phần mềm giúp người dùng tải video YouTube về Mac,
2025-04-09源处: 这个函数的作用是启动自己的子进程,然后执行指定的函数。比方说如果你想另开一个进程执行“fuck”函数,代码写_CoProc("fuck")就行了。这个函数会返回子进程的PID,在对子进程进行操作时会用到这个PID。另外,你可以无限制开启子进程,且每个子进程都可以建立完全独立的GUI。_ProcSuspend() & _ProcResume() 暂停/恢复进程。如果你开了一个子进程专门下载文件,就可以利用这两个函数暂停/继续下载。范例:_ProcSuspend(@PID) 。_CloseHandle() 关闭子进程。范例:_CloseHandle(@PID) 。_CoProcSend() 向指定进程发送消息。当子进程有新的信息(比如完成下载)需要提示母进程时,就可以使用这个函数。范例:_CoProcSend($PID, "发送的消息内容")。 _CoProcReciver() 注册一个函数用于接收其他进程用_CoProcSend函数传递过来的消息,每当收到消息时注册的函数就会被执行。需要注意的是,被注册的函数必须有且只有一个自定义参数,而传递的参数里就是发送过来的消息。范例:_CoProcReciver("函数名称")。 例子:#NoTrayIcon#include "CoProc.au3"#region 主程序区域#include $Form1 = GUICreate("Multiple File Download", 622, 119, 192, 125)GUICtrlCreateLabel(" (1Mb)", 8, 8)GUICtrlCreateLabel(" (20Mb)", 8, 48)$Progress1 = GUICtrlCreateProgress(8, 24, 601, 17)$Progress2 = GUICtrlCreateProgress(8, 64, 601, 17)$Button1 = GUICtrlCreateButton("Pause", 8, 88, 81, 25)$Button2 = GUICtrlCreateButton("Resume", 96, 88, 81, 25)$iPidSmall = _CoProc("Small") ;开启子进程,子进程将执行Small()函数,$iPidSmall得到的是子进程的PID$iPidBig = _CoProc("Big")GUISetState(@SW_SHOW)_CoProcReciver("Reciver") ;注册Reciver()函数来接收子进程传递过来的消息While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 _ProcSuspend($iPidSmall) ;暂停$iPidSmall这个子进程 _ProcSuspend($iPidBig) Case $msg = $Button2 _ProcResume($iPidSmall) ;恢复$iPidSmall子进程 _ProcResume($iPidBig) Case Else ; EndSelectWEndFileDelete(@TempDir & "\smalltest.tmp")FileDelete(@TempDir & "\bigtest.tmp")ExitFunc Reciver($vParameter) ;$vParameter里就是子进程发来的消息 $aParam = StringSplit($vParameter,"|") If $aParam[1] = "small" Then GUICtrlSetData($Progress1,$aParam[2]) If $aParam[1] = "big" Then GUICtrlSetData($Progress2,$aParam[2])EndFunc#endregion #region Small()函数里是'Small file'子进程的所要执行的代码Func Small() $url = " $size = InetGetSize($url) InetGet($url,@TempDir & "\smalltest.tmp",1,1) While @InetGetActive And ProcessExists($gi_CoProcParent) ;在下载时不断向父进程发送下载进度,$gi_CoProcParent是父进程的PID,这个变量是函数自己建立的 _CoProcSend($gi_CoProcParent,"small|" & Round(@InetGetBytesRead / $size * 100,0)) Sleep(250) WEnd _CoProcSend($gi_CoProcParent,"small|100")EndFunc#endregion#region 'Big file'子进程执行的代码Func Big() $url = " $size = InetGetSize($url) InetGet($url,@TempDir & "\bigtest.tmp",1,1) While @InetGetActive And ProcessExists($gi_CoProcParent) _CoProcSend($gi_CoProcParent,"big|" & Round(@InetGetBytesRead / $size * 100,0)) Sleep(250) WEnd _CoProcSend($gi_CoProcParent,"big|100")EndFunc#endregion注意事项: 子进程发送消息时需要母进程的PID,而母进程的PID储存在$gi_CoProcParentli里 子进程可以正常使用脚本里的所有自定义函数 在子进程执行的那个函数里你不能再#include函数库或是用Func定义函数 对一个子进程不要重复使用_ProcSuspend()和_ProcResume() 函数,否则会让子进程无响应 posted on 2008-01-15 12:07 疾风随影 阅读(6428) 评论(0) 编辑 收藏 引用 所属分类: AutoIT column
2025-04-08