2.4用按鍵精靈匯出滬深A股所有股票指定的指標資料

深海漁民發表於2018-09-28

在這一節,我們學習在如何從通達信金融終端中匯出所有股票想要的指標資料。

步驟一:建立一個記事本檔案,將以下程式碼複製到檔案中。
[General]
SyntaxVersion=2
BeginHotkey=121
BeginHotkeyMod=0
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=123
StopHotkeyMod=0
RunOnce=1
EnableWindow=
MacroID=d12f149c-3ad4-447c-a5ad-8ff6d8b22239
Description=儲存個股資料長期
Enable=1
AutoRun=0
[Repeat]
Type=0
Number=1
[SetupUI]
Type=2
QUI=
[Relative]
SetupOCXFile=
[Comment]

[Script]
'==========以下是按鍵精靈錄製的內容==========
FOR AA=1 TO 3500
'按下PAGEDOWN換股
KeyDown "PageDown", 1
Delay 20
KeyUp "PageDown", 1
Delay 20
'選擇日線
MoveTo 279, 31
Delay 20
LeftClick 1
Delay 20
'縮小K線,以便看到更大的範圍
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
'移動到系統
MoveTo 43, 7
Delay 100
LeftClick 1
Delay 10
'移動到資料匯出,開啟匯出視窗
MoveTo 69, 76
Delay 50
LeftDown 1
Delay 50
LeftClick 1
Delay 50
LeftUp 1
Delay 50
MoveTo 809, 535
Delay 50
'儲存資料
LeftClick 1
Delay 500
'開啟取消
MoveTo 794, 488
Delay 100
LeftClick 1
Delay 100
NEXT
'==========以上是按鍵精靈錄製的內容==========
步驟二:將檔名儲存為“儲存A個股資料長期.Q”(注意,副檔名是.Q) 步驟三:開啟“按鍵精靈”-“我的指令碼”-“自動備份”,在右邊空白處右擊,從彈出選單中找到“匯入指令碼”enter image description here 然後使用匯入指令碼工具新增指令碼。 enter image description here

相關文章