回复 1# linnsky
楼主的写法真够古怪,先写自定义函数再写运行代码
Main()
Func Main()
FileChangeDir(@ScriptDir)
Sleep(60000)
FileCreateShortcut(@ScriptFullPath , "C:\Documents and Settings\Administrator\「开始」菜单\程序\启动\EyooPage.lnk")
OneHome()
While 1
Home()
WEnd
EndFunc
Func Home()
Local $time = IniRead("EyooPage.dat", "HomePage", "Time", "20") * 1000
Sleep($time)
Local $file = IniRead("EyooPage.dat", "HomePage", "Dir", "D:\UserData$\Globalconfig\SetMenu.dat")
Local $home = IniRead("EyooPage.dat", "HomePage", "Home", "http://25759.5258.net/")
MsgBox(4096 , "Test" , $home)
IniWrite($file, "Setup", "StartPage", $home)
EndFunc
Func OneHome()
Local $file = IniRead("EyooPage.dat", "HomePage", "Dir", "D:\UserData$\Globalconfig\SetMenu.dat")
Local $home = IniRead("EyooPage.dat", "HomePage", "Home", "http://25759.5258.net/")
MsgBox(4096 , "Test" , $home)
IniWrite($file, "Setup", "StartPage", $home)
EndFunc
|