新沂城市论坛

标题: 发点AU3的东西~(教程/软件) [打印本页]

作者: 默爱清风    时间: 2007-4-1 07:43
标题: Re:发点AU3的东西~(教程/软件)
简单教程不简单呀。


作者: 落雪无痕    时间: 2007-4-4 20:27
标题: Re:发点AU3的东西~(教程/软件)
在来个AU3做的虚拟网关的脚本,有什么用,呵呵。免受ARP掉线之苦白~~

; <AUT2EXE VERSION: 3.1.0.4>

; ----------------------------------------------------------------------------; <AUT2EXE INCLUDE-START: C:\Program Files\AutoIt3\Include\GUIConstants.au3>; ----------------------------------------------------------------------------

; ------------------------------------------------------------------------------;; AutoIt Version: 3.0; Language:       English; Description:    Constants to be used in GUI applications.;; ------------------------------------------------------------------------------

; Events and messagesGlobal Const $GUI_EVENT_CLOSE   = -3Global Const $GUI_EVENT_MINIMIZE  = -4Global Const $GUI_EVENT_RESTORE   = -5Global Const $GUI_EVENT_MAXIMIZE  = -6Global Const $GUI_EVENT_PRIMARYDOWN  = -7Global Const $GUI_EVENT_PRIMARYUP  = -8Global Const $GUI_EVENT_SECONDARYDOWN = -9Global Const $GUI_EVENT_SECONDARYUP  = -10Global Const $GUI_EVENT_MOUSEMOVE  = -11

; StateGlobal Const $GUI_AVISTOP  = 0Global Const $GUI_AVISTART  = 1Global Const $GUI_AVICLOSE  = 2

Global Const $GUI_CHECKED  = 1Global Const $GUI_INDETERMINATE = 2Global Const $GUI_UNCHECKED  = 4

Global Const $GUI_ACCEPTFILES = 8

Global Const $GUI_SHOW   = 16Global Const $GUI_HIDE    = 32Global Const $GUI_ENABLE  = 64Global Const $GUI_DISABLE  = 128

Global Const $GUI_FOCUS   = 256Global Const $GUI_DEFBUTTON  = 512

Global Const $GUI_EXPAND  = 1024

; FontGlobal Const $GUI_FONTITALIC = 2Global Const $GUI_FONTUNDER  = 4Global Const $GUI_FONTSTRIKE = 8

; ResizingGlobal Const $GUI_DOCKAUTO   = 0x0001Global Const $GUI_DOCKLEFT   = 0x0002Global Const $GUI_DOCKRIGHT   = 0x0004Global Const $GUI_DOCKHCENTER  = 0x0008Global Const $GUI_DOCKTOP   = 0x0020Global Const $GUI_DOCKBOTTOM  = 0x0040Global Const $GUI_DOCKVCENTER  = 0x0080Global Const $GUI_DOCKWIDTH   = 0x0100Global Const $GUI_DOCKHEIGHT  = 0x0200

Global Const $GUI_DOCKSIZE   = 0x0300 ; width+heightGlobal Const $GUI_DOCKMENUBAR  = 0x0220 ; top+heightGlobal Const $GUI_DOCKSTATEBAR  = 0x0240 ; bottom+heightGlobal Const $GUI_DOCKALL   = 0x0322 ; left+top+width+height

; Window StylesGlobal Const $WS_TILED    = 0Global Const $WS_OVERLAPPED   = 0Global Const $WS_MAXIMIZEBOX  = 0x00010000Global Const $WS_MINIMIZEBOX  = 0x00020000Global Const $WS_TABSTOP   = 0x00010000Global Const $WS_GROUP    = 0x00020000Global Const $WS_SIZEBOX   = 0x00040000Global Const $WS_THICKFRAME   = 0x00040000Global Const $WS_SYSMENU   = 0x00080000Global Const $WS_HSCROLL   = 0x00100000Global Const $WS_VSCROLL   = 0x00200000Global Const $WS_DLGFRAME    = 0x00400000Global Const $WS_BORDER    = 0x00800000Global Const $WS_CAPTION   = 0x00C00000Global Const $WS_OVERLAPPEDWINDOW = 0x00CF0000Global Const $WS_TILEDWINDOW  = 0x00CF0000Global Const $WS_MAXIMIZE   = 0x01000000Global Const $WS_CLIPCHILDREN  = 0x02000000Global Const $WS_CLIPSIBLINGS  = 0x04000000Global Const $WS_DISABLED    = 0x08000000Global Const $WS_VISIBLE   = 0x10000000Global Const $WS_MINIMIZE   = 0x20000000Global Const $WS_CHILD    = 0x40000000Global Const $WS_POPUP    = 0x80000000Global Const $WS_POPUPWINDOW  = 0x80880000

Global Const $DS_MODALFRAME   = 0x80Global Const $DS_SETFOREGROUND  = 0x00000200Global Const $DS_CONTEXTHELP  = 0x00002000

; Window Extended StylesGlobal Const $WS_EX_ACCEPTFILES   = 0x00000010Global Const $WS_EX_APPWINDOW   = 0x00040000Global Const $WS_EX_CLIENTEDGE   = 0x00000200Global Const $WS_EX_CONTEXTHELP   = 0x00000400Global Const $WS_EX_DLGMODALFRAME   = 0x00000001Global Const $WS_EX_LEFTSCROLLBAR   = 0x00004000Global Const $WS_EX_OVERLAPPEDWINDOW = 0x00000300Global Const $WS_EX_RIGHT    = 0x00001000Global Const $WS_EX_STATICEDGE   = 0x00020000Global Const $WS_EX_TOOLWINDOW   = 0x00000080Global Const $WS_EX_TOPMOST    = 0x00000008Global Const $WS_EX_TRANSPARENT   = 0x00000020Global Const $WS_EX_WINDOWEDGE   = 0x00000100Global Const $WS_EX_LAYERED    = 0x00080000Global Const $LBS_EX_FULLROWSELECT  = 0x00000020

; Label/Pic/IconGlobal Const $SS_CENTER   = 1Global Const $SS_RIGHT   = 2Global Const $SS_ICON   = 3Global Const $SS_BLACKRECT  = 4Global Const $SS_GRAYRECT  = 5Global Const $SS_WHITERECT  = 6Global Const $SS_BLACKFRAME  = 7Global Const $SS_GRAYFRAME  = 8Global Const $SS_WHITEFRAME  = 9Global Const $SS_SIMPLE   = 11Global Const $SS_LEFTNOWORDWRAP = 12Global Const $SS_BITMAP   = 15Global Const $SS_ETCHEDHORZ  = 16Global Const $SS_ETCHEDVERT  = 17Global Const $SS_ETCHEDFRAME = 18Global Const $SS_NOPREFIX  = 0x0080Global Const $SS_NOTIFY   = 0x0100Global Const $SS_CENTERIMAGE = 0x0200Global Const $SS_RIGHTJUST  = 0x0400Global Const $SS_SUNKEN   = 0x1000

; ButtonGlobal Const $BS_BOTTOM   = 0x0800Global Const $BS_CENTER   = 0x0300Global Const $BS_DEFPUSHBUTTON = 0x0001Global Const $BS_LEFT   = 0x0100Global Const $BS_MULTILINE  = 0x2000Global Const $BS_PUSHBOX  = 0x000AGlobal Const $BS_PUSHLIKE  = 0x1000Global Const $BS_RIGHT   = 0x0200Global Const $BS_RIGHTBUTTON = 0x0020Global Const $BS_TOP   = 0x0400Global Const $BS_VCENTER  = 0x0C00Global Const $BS_FLAT   = 0x8000Global Const $BS_ICON   = 0x0040Global Const $BS_BITMAP   = 0x0080

; CheckboxGlobal Const $BS_3STATE   = 0x0005Global Const $BS_AUTO3STATE  = 0x0006Global Const $BS_AUTOCHECKBOX = 0x0003Global Const $BS_CHECKBOX  = 0x0002

; ComboGlobal Const $CBS_SIMPLE   = 0x0001Global Const $CBS_DROPDOWN   = 0x0002Global Const $CBS_DROPDOWNLIST  = 0x0003Global Const $CBS_AUTOHSCROLL  = 0x0040Global Const $CBS_OEMCONVERT  = 0x0080Global Const $CBS_SORT    = 0x0100Global Const $CBS_NOINTEGRALHEIGHT = 0x0400Global Const $CBS_DISABLENOSCROLL = 0x0800Global Const $CBS_UPPERCASE   = 0x2000Global Const $CBS_LOWERCASE   = 0x4000

; ListboxGlobal Const $LBS_NOTIFY   = 0x0001Global Const $LBS_SORT    = 0x0002Global Const $LBS_USETABSTOPS  = 0x0080Global Const $LBS_NOINTEGRALHEIGHT = 0x0100Global Const $LBS_DISABLENOSCROLL = 0x1000Global Const $LBS_NOSEL    = 0x4000Global Const $LBS_STANDARD   = 0xA00003

; Edit/InputGlobal Const $ES_LEFT    = 0Global Const $ES_CENTER    = 1Global Const $ES_RIGHT    = 2Global Const $ES_MULTILINE   = 4Global Const $ES_UPPERCASE   = 8Global Const $ES_LOWERCASE   = 16Global Const $ES_PASSWORD   = 32Global Const $ES_AUTOVSCROLL  = 64Global Const $ES_AUTOHSCROLL  = 128Global Const $ES_NOHIDESEL   = 256Global Const $ES_OEMCONVERT   = 1024Global Const $ES_READONLY   = 2048Global Const $ES_WANTRETURN   = 4096Global Const $ES_NUMBER    = 8192;Global Const $ES_DISABLENOSCROLL = 8192;Global Const $ES_SUNKEN = 16384;Global Const $ES_VERTICAL = 4194304;Global Const $ES_SELECTIONBAR = 16777216

; DateGlobal Const $DTS_SHORTDATEFORMAT = 0Global Const $DTS_UPDOWN   = 1Global Const $DTS_SHOWNONE   = 2Global Const $DTS_LONGDATEFORMAT = 4Global Const $DTS_TIMEFORMAT  = 9Global Const $DTS_RIGHTALIGN  = 32

; Progress barGlobal Const $PBS_SMOOTH = 1Global Const $PBS_VERTICAL = 4

; AVI clipGlobal Const $ACS_CENTER   = 1Global Const $ACS_TRANSPARENT  = 2Global Const $ACS_AUTOPLAY   = 4Global Const $ACS_TIMER    = 8Global Const $ACS_NONTRANSPARENT = 16

; TabGlobal Const $TCS_SCROLLOPPOSITE = 0x0001Global Const $TCS_BOTTOM   = 0x0002Global Const $TCS_RIGHT    = 0x0002Global Const $TCS_MULTISELECT  = 0x0004Global Const $TCS_FLATBUTTONS  = 0x0008Global Const $TCS_FORCEICONLEFT  = 0x0010Global Const $TCS_FORCELABELLEFT = 0x0020Global Const $TCS_HOTTRACK   = 0x0040Global Const $TCS_VERTICAL   = 0x0080Global Const $TCS_TABS    = 0x0000Global Const $TCS_BUTTONS   = 0x0100Global Const $TCS_SINGLELINE  = 0x0000Global Const $TCS_MULTILINE   = 0x0200Global Const $TCS_RIGHTJUSTIFY  = 0x0000Global Const $TCS_FIXEDWIDTH  = 0x0400Global Const $TCS_RAGGEDRIGHT  = 0x0800Global Const $TCS_FOCUSONBUTTONDOWN = 0x1000Global Const $TCS_OWNERDRAWFIXED = 0x2000Global Const $TCS_TOOLTIPS   = 0x4000Global Const $TCS_FOCUSNEVER  = 0x8000

; TreeViewGlobal Const $TVS_HASBUTTONS      = 0x0001Global Const $TVS_HASLINES        = 0x0002Global Const $TVS_LINESATROOT     = 0x0004;Global Const $TVS_EDITLABELS      = 0x0008Global Const $TVS_DISABLEDRAGDROP = 0x0010Global Const $TVS_SHOWSELALWAYS  = 0x0020;Global Const $TVS_RTLREADING     = 0x0040Global Const $TVS_NOTOOLTIPS  = 0x0080Global Const $TVS_CHECKBOXES  = 0x0100Global Const $TVS_TRACKSELECT  = 0x0200Global Const $TVS_SINGLEEXPAND  = 0x0400;Global Const $TVS_INFOTIP        = 0x0800Global Const $TVS_FULLROWSELECT  = 0x1000Global Const $TVS_NOSCROLL   = 0x2000Global Const $TVS_NONEVENHEIGHT  = 0x4000

; SliderGlobal Const $TBS_AUTOTICKS = 0x0001Global Const $TBS_VERT  = 0x0002Global Const $TBS_HORZ  = 0x0000Global Const $TBS_TOP  = 0x0004Global Const $TBS_BOTTOM = 0x0000Global Const $TBS_LEFT  = 0x0004Global Const $TBS_RIGHT  = 0x0000Global Const $TBS_BOTH  = 0x0008Global Const $TBS_NOTICKS = 0x0010Global Const $TBS_NOTHUMB = 0x0080

; ListViewGlobal Const $LVS_REPORT    = 0x0001Global Const $LVS_EDITLABELS  = 0x0200Global Const $LVS_NOCOLUMNHEADER = 0x4000Global Const $LVS_NOSORTHEADER  = 0x8000Global Const $LVS_SINGLESEL   = 0x0004Global Const $LVS_SHOWSELALWAYS  = 0x0008

;UpdownGlobal Const $UDS_WRAP     = 0x0001Global Const $UDS_ALIGNRIGHT   = 0x0004Global Const $UDS_ALIGNLEFT   = 0x0008Global Const $UDS_ARROWKEYS   = 0x0020Global Const $UDS_HORZ     = 0x0040Global Const $UDS_NOTHOUSANDS   = 0x0080

; Control default stylesGlobal Const $GUI_SS_DEFAULT_AVI  = $ACS_TRANSPARENTGlobal Const $GUI_SS_DEFAULT_BUTTON  = 0Global Const $GUI_SS_DEFAULT_CHECKBOX = 0Global Const $GUI_SS_DEFAULT_COMBO  = $CBS_DROPDOWN + $CBS_AUTOHSCROLL + $WS_VSCROLLGlobal Const $GUI_SS_DEFAULT_DATE  = $DTS_LONGDATEFORMATGlobal Const $GUI_SS_DEFAULT_EDIT  = $ES_WANTRETURN + $WS_VSCROLL + $WS_HSCROLL + $ES_AUTOVSCROLL + $ES_AUTOHSCROLLGlobal Const $GUI_SS_DEFAULT_GROUP  = 0Global Const $GUI_SS_DEFAULT_ICON  = $SS_NOTIFYGlobal Const $GUI_SS_DEFAULT_INPUT  = $ES_LEFT + $ES_AUTOHSCROLLGlobal Const $GUI_SS_DEFAULT_LABEL  = 0Global Const $GUI_SS_DEFAULT_LIST  = $LBS_SORT + $WS_BORDER + $WS_VSCROLL + $LBS_NOTIFYGlobal Const $GUI_SS_DEFAULT_LISTVIEW = $LVS_SHOWSELALWAYS + $LVS_SINGLESELGlobal Const $GUI_SS_DEFAULT_PIC  = $SS_NOTIFYGlobal Const $GUI_SS_DEFAULT_PROGRESS = 0Global Const $GUI_SS_DEFAULT_RADIO  = 0Global Const $GUI_SS_DEFAULT_SLIDER  = $TBS_AUTOTICKSGlobal Const $GUI_SS_DEFAULT_TAB  = 0Global Const $GUI_SS_DEFAULT_TREEVIEW = $TVS_HASBUTTONS + $TVS_HASLINES + $TVS_LINESATROOT + $TVS_DISABLEDRAGDROP + $TVS_SHOWSELALWAYSGlobal Const $GUI_SS_DEFAULT_UPDOWN  = $UDS_ALIGNRIGHTGlobal Const $GUI_SS_DEFAULT_GUI  = $WS_MINIMIZEBOX + $WS_CAPTION + $WS_POPUP + $WS_SYSMENU

; ----------------------------------------------------------------------------; <AUT2EXE INCLUDE-END: C:\Program Files\AutoIt3\Include\GUIConstants.au3>; ----------------------------------------------------------------------------

runwait(@comspec & " /c " & "route delete 0.0.0.0", "", @SW_hide)runwait(@comspec & " /c " & "route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1", "", @SW_hide)runwait(@comspec & " /c " & "route change 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1", "", @SW_hide)








欢迎光临 新沂城市论坛 (http://bbs.0516k.com/) Powered by Discuz! X3.2