举报
#include <GUIConstantsEx.au3> $width = 400 $hight = 400 $MainGUI = GUICreate("Hosts", $width, $hight, @DesktopWidth / 2 - $width / 2, @DesktopHeight / 2 - $hight / 2, -1) $Edit1 = GUICtrlCreateEdit("", -1, -1, 400, 400) $fo = FileOpen ( @SystemDir&"\Drivers\Etc\Hosts",0) $fr = FileRead ($fo ) GUICtrlSetData($Edit1, $fr) ;MsgBox(0, "Hosts",$fr) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 23:07 , Processed in 0.077160 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.