Chinasmoker Posted May 6, 2008 Share Posted May 6, 2008 Hi,all, I ve a trouble, ERROR: IniRead() [built-in] called with wrong number of args. CODE#include <GUIConstants.au3> #include <IE.au3> Opt("GUIOnEventMode", 1) #NoTrayIcon #Region ### START Koda GUI section ### Form=C:\Documents and Settings\Administrator\桌面\Form1.kxf $Form1 = GUICreate("刷流量工具", 482, 354, 193, 115) GUISetOnEvent ($GUI_EVENT_CLOSE,"tc") $Group1 = GUICtrlCreateGroup("设置", 0, 8, 481, 105) $Label1 = GUICtrlCreateLabel("网址:", 16, 40, 40, 17) $Input1 = GUICtrlCreateInput("www.", 56, 40, 185, 21) $Label2 = GUICtrlCreateLabel("间隔时间:", 256, 40, 64, 17) $Input2 = GUICtrlCreateInput("", 320, 40, 33, 21) $Label3 = GUICtrlCreateLabel("秒", 360, 40, 16, 17) $Button1 = GUICtrlCreateButton("保存", 392, 40, 59, 25, 0) GUICtrlSetOnEvent($button1,"save") $Button2 = GUICtrlCreateButton("测试", 72, 80, 75, 25, 0) GUICtrlSetOnEvent($Button2,"test") $Button3 = GUICtrlCreateButton("开刷", 240, 80, 75, 25, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateEdit("", 8, 120, 465, 225) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 sleep(1000) WEnd Func save() $SURL = GUICtrlRead ($Input1) $Stime = GUICtrlRead ($Input2) IniWrite (@ScriptDir &"\IErefresh.ini","URL","URL1",$SURL) IniWrite (@ScriptDir &"\IErefresh.ini","time","time1",$Stime) MsgBox (0,"完成","保存成功") EndFunc Func test() IniRead (@ScriptDir &"\IErefresh.ini","URL","URL1") Sleep(1000) EndFunc Func tc() Exit EndFunc One is never too old to learn Link to comment Share on other sites More sharing options...
Chinasmoker Posted May 6, 2008 Author Share Posted May 6, 2008 Any body here One is never too old to learn Link to comment Share on other sites More sharing options...
Developers Jos Posted May 6, 2008 Developers Share Posted May 6, 2008 Don't be impatient this is a freeware software forum without any SLA's. You could just open the helpfile to check why it tells you that you need to add another parameter to IniRead. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Chinasmoker Posted May 6, 2008 Author Share Posted May 6, 2008 Don't be impatient this is a freeware software forum without any SLA's.You could just open the helpfile to check why it tells you that you need to add another parameter to IniRead.IM not impatient,but Thank you all the same. One is never too old to learn Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now