winTitle:="ahk_class TdxW_MainFrame_Class"
b_code_ctr:="Edit8"
b_price_ctr:="Edit9"
b_num_ctr:="Edit12"
code=600050
price=5.50
num=100
ifwinexist %winTitle%
{
WinActivate,%winTitle%
ControlSetText,%b_code_ctr%,%code%,%winTitle%
ControlSetText,%b_price_ctr%,%price%,%winTitle%
ControlSetText,%b_num_ctr%,%num%,%winTitle%
}