AUTOIT 作者是谁?
AUTOIT 作者是谁?哪个国家的?为神马不搞多线程,难道AU3只有当帮助程序的命。好多功能都实现不了,真是没有想不到,只有做不到啊。{:face (258):} 看看你的-3分贡献,再看看你帖子的内容,我豁然开朗了~~~ 本帖最后由 rst52013353 于 2013-1-3 21:08 编辑回复 2# annybaby
呵呵``````那-3我都不知道是怎么得到的{:face (355):}
你不会是作者吧,度娘上搜不到你嘛````````{:face (239):} 慢慢学习。。{:face (280):} 慢慢学习。。{:face (280):} 本帖最后由 netegg 于 2013-1-3 22:01 编辑
lz单线程玩得很精通吗?如果答案不是,多线程有什么用呢?
‘真是没有想不到,只有做不到’----这句话lz自用可能更合适些,真要是给你多线程,堆栈处理你觉得很容易是吗? 没有多线程虽然有些不足,但是我依然觉得Autoit很好很强大。
难度不可以用多进程来弥补一下多线程吗? 话说除了au3不能进R0,别的都可以~当然像我这样的菜鸟只能用au3的初级命令而已。 本帖最后由 netegg 于 2013-1-4 00:24 编辑
Func CreateThreads()
Local $I
For $x = 0 To 59
$I = Mod($x, 10)
$tURL_COMPONENTS[$x] = DllStructCreate( _; all this is working perfectly in the DLL
"WCHAR UserAgent;" & _
"WCHAR HTTPVerb;" & _
"WCHAR Host;" & _
"WCHAR Resource;" & _
"int Port;" & _
"WCHAR Referer;" & _
"WCHAR Headers;" & _
"ptr ExtraData;" & _
"DWORD Length;" & _
"DWORD TotalLength;" & _
"WCHAR Proxy;" & _
"DWORD ProxyFlags;" & _
"DWORD SendFlags;" & _
"HWND ListView;" & _; unused in the DLL
"ptr CallBack;" _
)
$sOptional = ''
$iOptionalLength = BinaryLen($sOptional) + 5
$tOptional[$x] = DllStructCreate("byte[" & $iOptionalLength & "]")
If $iOptionalLength Then $pOptional[$x] = DllStructGetPtr($tOptional[$x])
DllStructSetData($tOptional[$x], 1, $sOptional)
DllStructSetData($tURL_COMPONENTS[$x], 1, "(Compatable; AutoIt/v3 WinHTTP Test Script)")
DllStructSetData($tURL_COMPONENTS[$x], 2, "GET")
DllStructSetData($tURL_COMPONENTS[$x], 3, "unrealx.lt")
DllStructSetData($tURL_COMPONENTS[$x], 4, "showip.php")
DllStructSetData($tURL_COMPONENTS[$x], 5, $INTERNET_DEFAULT_HTTP_PORT)
DllStructSetData($tURL_COMPONENTS[$x], 6, '')
DllStructSetData($tURL_COMPONENTS[$x], 7, $ContentType)
DllStructSetData($tURL_COMPONENTS[$x], 8, $pOptional[$x])
DllStructSetData($tURL_COMPONENTS[$x], 9, $iOptionalLength)
DllStructSetData($tURL_COMPONENTS[$x], 10, $iOptionalLength)
DllStructSetData($tURL_COMPONENTS[$x], 11, $Proxies[$i]); Cycle through proxies for this test
DllStructSetData($tURL_COMPONENTS[$x], 12, $WINHTTP_ACCESS_TYPE_NAMED_PROXY)
DllStructSetData($tURL_COMPONENTS[$x], 13, $WINHTTP_FLAG_ESCAPE_DISABLE);WINHTTP_FLAG_SECURE
DllStructSetData($tURL_COMPONENTS[$x], 14, GUICtrlGetHandle($hListView))
DllStructSetData($tURL_COMPONENTS[$x], 15, $pCallback); set a pointer to the CallBack function
$aThread[$x] = _AutoItThreadCreate(DllStructGetPtr($tURL_COMPONENTS[$x])); Create the thread!
;$tURL_COMPONENTS = 0
Next
EndFunc ;==>CreateThreads
Func _AutoItCallBack($test, $data)
Local $Ubound = UBound($ResultsArray); get array size
ReDim $ResultsArray[$Ubound + 1]; redim it
$ResultsArray[$Ubound - 1] = $test; add data returned from thread
$ResultsArray[$Ubound - 1] = $data
AdlibRegister("_AddListViewItem", 5000); this will add the resulting array to the list view after no activity for 5 seconds
Return
EndFunc ;==>_AutoItCallBack
另外,lz如果觉得刚才的回答有些憋屈,给段代码过过目,觉得过瘾否? 便是不懂啥时候多线程 你们还不懂楼主是什么来路吗“? 回复 8# haijie1223
AU3能进RING0。 呵呵,高手真多啊。{:face (355):}没有人知道作者是谁吗? 回复 14# rst52013353
自己不会去wiki上看呀 回复 14# rst52013353
F1表示"竟无语凝噎"~~
PS:当然一两个人不理你的时候,可能是别人的问题,但当全世界都不理你的时候,你就应该反省自己了