記錄開發自已使用的期貨程式。
環境: 看盤軟體(有DDE即可),提供下單API。
程式 : 自行撰寫(目前是Delphi,VB,BCB都可)。
若有需要代寫者, 請與我連繫。future.tsengdp@gmail.com 。
註:在這只可加程式下單相關的廣告,不相關廣告會刪掉的。

2012年1月12日星期四

AutoHotkey_L 已知的問題

版本 AutoHotkey_L 1.1.05.05 及 1.1.05.06, 檔案要存成UTF-8格式 。

問題:在INI檔中, 用中文Section及Key會抓不到資料, 現ERROR。

用舊版及AutoHotkey 1.0.48.05是正常的, 檔案要存成ANSI格式。

  • ini檔內容
    [期貨商品]
    交易所 = TW
    商品數 = 3

    商品1 = txf


  • 程式碼
    iniFile = ./jcmp.ini
    IfNotExist, %iniFile%
    {
    MsgBox, IniFile %iniFile% not Exist.
    ExitApp
    }

    IniRead, exchange, %iniFile%, 期貨商品, 交易所
    IniRead, pNumber, %iniFile%, 期貨商品, 商品數
    IniRead, fExt, %iniFile%, 期貨商品, 副檔名


    msgbox ahk version:%A_AhkVersion%`n`n商品數=%pNumber% \
    `n副檔名=%fExt%`n交易所=%exchange%

  • 結果出現ERROR

註:這是舊程式, 以前跑起來是正常的。

0 意見:

張貼意見