|
悬赏300金钱已解决
本帖最后由 东风烈烈 于 2015-11-10 16:49 编辑
另付酬劳真实人民币300元。本人QQ:2682658016
我写的这段代码读不出来,请指教:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIEdit.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
#include <Date.au3>
#include <Array.au3>
#include <File.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
#include <GuiComboBox.au3>
#include <GuiButton.au3>
#include <IE.au3>
#Include <WinAPI.au3>
#include <ListViewConstants.au3>
#include <Math.au3>
Global $iniFileName = @ScriptDir & "\MT4config.ini"
; ini中的清仓时间
Global $WR=3000,$WR1=3000,$WR2=3000,$WR3=35
Global $WHProgramTitle = "1091953: ABL-Demo"
Global $hModelListView = ControlGetHandle($WHProgramTitle, "", "SysListView321")
Global $WH81 = "1091953: ABL-Demo"
Global $WH82="[CLASS:SysListView32; INSTANCE:1]"; INSTANCE:2];ListView 类名
Global $iMCnt = _GUICtrlListView_GetItemCount($hModelListView)
Global $iMLUMCnt1 = _GUICTRLLISTVIEW_GETCOLUMNCOUNT($hModelListView)
Global $NA[$WR1][$WR3]
ReDim $NA[$WR1][$WR3]
Global $NB[$WR2][$WR3]
ReDim $NB[$WR2][$WR3]
Global $M1=1
While 1
$iMCnt = _GUICtrlListView_GetItemCount($hModelListView)
$iMLUMCnt1 = _GUICTRLLISTVIEW_GETCOLUMNCOUNT($hModelListView)
If $M1 >= 5 Then
Exit
EndIf
If $iMCnt > 1 Then
For $N = 0 To $iMCnt - 2
For $I = 0 To $iMLUMCnt1 - 1
; 获得信息
$NA [$N ][$I ] = _GUICTRLLISTVIEW_GETITEMTEXT($hModelListView, $N, $I)
Next
$NA [$N][2] = StringStripWS($NA [$N][2], 8);取持仓方向
;$NA[$N][2] = StringLeft($NA[$N][2],2);取持仓方向
$NA [$N][4] = StringStripWS($NA [$N][4], 8);交易合约
$NA[$N][11] = Number($NA[$N][11]);盈亏金额
MsgBox(0,"A结果?",$iMCnt & $iMLUMCnt1 & "交易合约:" & $NA [$N][4] & "方向:" & $NA[ $N][2] & "盈亏金额:" & $NA[ $N][11] & "A0全部正确吗?")
Next
$M1=$M1+1
EndIf
If $iMCnt = 1 Then
For $I = 0 To $iMLUMCnt1 - 1
$NA [0 ][$I ]= _GUICTRLLISTVIEW_GETITEMTEXT($hModelListView, 0, $I)
NEXT
$NA [0][2] = StringStripWS($NA [0][2], 8);取持仓方向
;$NA[0][2] = StringLeft($NA[0][2],2);取持仓方向
$NA [0][4] = StringStripWS($NA [0][4], 8);交易合约
$NA[0][11] = Number($NA[0][11]);盈亏金额
MsgBox(0,"A结果?",$iMCnt & $iMLUMCnt1 & "交易合约:" & $NA [0][4] & "方向:" & $NA[ 0][2] & "盈亏金额:" & $NA[ 0][11] & " A0全部正确吗?")
$M1=$M1+1
EndIf
WEnd
下面是要读取的程序安装包:
有朋友说上面的文件下载后不能安装,下面的是文件官网的链接:
http://www.ablchinese.com/list.asp?classid=9
另外说明一下这个是在线安装的,所需时间比一般的长。 |
附件: 您需要 登录 才可以下载或查看,没有账号?加入
最佳答案
查看完整内容
可以用读内存或是截图后OCR识别,考虑到效率问题,我一般都是调用第三方dll完成。
|