|
部份代码如下:
$Button1 = GUICtrlCreateButton("编辑TVOD节目单", 50, 300, 140, 30)
...
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Combo1
;MsgBox(0,"",GUICtrlRead($Combo1))
$tmp_str=GUICtrlRead($Combo1)
$var1 = IniReadSection("456.ini", $tmp_str)
If @error <> 1 Then
GUICtrlCreateInput( $var1[1][0], 150,60,200,20)
$channel_id_input=GUICtrlCreateInput( $var1[2][0], 150,90,200,20)
;MsgBox(4096, "channel_id", $channel_id)
Else
MsgBox(4096, "TVOD频道", "没有找到")
EndIf
Case $Button1
;MsgBox(4096, "","hello!")
tvodedit()
Case $Button2
tvodload()
Case $Button3
Exit
EndSwitch
WEnd
....
点击$Button1后有时正常调用函数tvodedit(),有时无反应或反应很慢,新手,初步接触autoit,请大家帮忙看看怎么回事,谢谢! |
|