|
lwhuang 發表於 13-11-5 09:04
哇~~真是高級~~~不得已的話只好這樣做了~~Sirius大是用那套?
玉山MVP,是嘉實XQ系列的。以前用永豐E-Leader也是採這種作法
以下AutoIt腳本供參考:
- #cs ----------------------------------------------------------------------------
- AutoIt Version: 3.3.6.1
- Author: Sirius@coco-in.net
- Script Function:
- for MVP, Import AmiBroker's Ticker List.
- v0.0-2011-5-6
- #ce ----------------------------------------------------------------------------
- $file = FileOpen("WatchList.tls", 0)
- ; Check if file opened for reading OK
- If $file = -1 Then
- MsgBox(0, "Error", "Unable to open file.")
- Exit
- EndIf
- MsgBox(4096, "", "請稍等幾秒鐘。開始後別再動電腦滑鼠、鍵盤。", 1)
- ;必須先把MVP準備好,進入「修改自選商品組合」畫面。
- ;游標要放在正確的輸入位置
- WinActivate("修改自選商品組合", "")
- ; Read in lines of text until the EOF is reached
- While 1
- $ticker = FileReadLine($file)
- If @error = -1 Then ExitLoop
- Send($ticker & "{Enter}")
- Wend
- FileClose($file)
- MsgBox(0,"", "作業完成!")
複製代碼
|
評分
-
查看全部評分
|