返回列表 回复 发帖

个人工具箱 (autoit3)


  1. include <GUIConstants.au3>
  2. AutoItSetOption("TrayIconHide", 1)
  3. AutoItSetOption("RunErrorsFatal", 1)
  4. $but12 = IniRead("Tools.ini", "Tab1", "but2", "")
  5. $path12 = IniRead("Tools.ini", "Tab1", "path2", "")
  6. $but13 = IniRead("Tools.ini", "Tab1", "but3", "")
  7. $path13 = IniRead("Tools.ini", "Tab1", "path3", "")
  8. $but14 = IniRead("Tools.ini", "Tab1", "but4", "")
  9. $path14 = IniRead("Tools.ini", "Tab1", "path4", "")
  10. $but15 = IniRead("Tools.ini", "Tab1", "but5", "")
  11. $path15 = IniRead("Tools.ini", "Tab1", "path5", "")
  12. $but16 = IniRead("Tools.ini", "Tab1", "but6", "")
  13. $path16 = IniRead("Tools.ini", "Tab1", "path6", "")
  14. $but17 = IniRead("Tools.ini", "Tab1", "but7", "")
  15. $path17 = IniRead("Tools.ini", "Tab1", "path7", "")
  16. $but18 = IniRead("Tools.ini", "Tab1", "but8", "")
  17. $path18 = IniRead("Tools.ini", "Tab1", "path8", "")
  18. GUICreate("我的常用工具集 By:AC",350,200,350,200)
  19. GUISetBkColor(0x00E0FFFF)
  20. GUISetFont(9, 300)
  21. $tab=GUICtrlCreateTab (0,0, 350,200)
  22. GUICtrlSetState(-1,$GUI_SHOW)
  23. $tab1=GUICtrlCreateTabitem ("    常用工具    ")
  24. $tab11=GUICtrlCreateButton ("CMD", 20,30,150,30)
  25. $tab12=GUICtrlCreateButton ($but12, 180,30,150,30)
  26. $tab13=GUICtrlCreateButton ($but13, 20,65,150,30)
  27. $tab14=GUICtrlCreateButton ($but14, 180,65,150,30)
  28. $tab15=GUICtrlCreateButton ($but15, 20,100,150,30)
  29. $tab16=GUICtrlCreateButton ($but16, 180,100,150,30)
  30. $tab17=GUICtrlCreateButton ($but17, 20,135,150,30)
  31. $tab18=GUICtrlCreateButton ($but18, 180,135,150,30)
  32. $tab2=GUICtrlCreateTabitem ("    远程连接    ")
  33. $icon = GUICtrlCreateIcon ("shell32.dll",10, 180,30)
  34. $icon = GUICtrlCreateIcon ("My-com.ico",30, 20,30)
  35. GUICtrlCreateLabel ("连接远程桌面",60, 40, 80)
  36. GUICtrlCreateLabel ("映射网络磁盘",220, 40, 80)
  37. $tab21=GUICtrlCreateButton ("电影服务器", 20,70,150,30)
  38. $tab22=GUICtrlCreateButton ("游戏服务器", 20,105,150,30)
  39. $tab23=GUICtrlCreateButton ("无盘服务器", 20,140,150,30)
  40. $tab24=GUICtrlCreateButton ("netrw", 180,70,150,30)
  41. $tab25=GUICtrlCreateButton ("game$+game2$+menu$", 180,105,150,30)
  42. $tab26=GUICtrlCreateButton ("lc", 180,140,150,30)
  43. GUICtrlCreateTabitem ("")
  44. $tab3=GUICtrlCreateTabitem ("    DDos测试    ")
  45. $Tab31 = GUICtrlCreateButton ("DDos之Fping", 20, 40, 180, 30)
  46. GUISetState ()  
  47. While 1
  48.    $msg1 = GUIGetMsg()
  49.    Select
  50.        Case $msg1 = $GUI_EVENT_CLOSE
  51.            Exit
  52.        Case $msg1 = $tab11
  53.     $destination = @SystemDir & "\cmd.cmd"
  54.           FileInstall("cmd.cmd", $destination)
  55.     FileChangeDir(@SystemDir)
  56.           Run(""&@SystemDir&"\cmd.cmd")            
  57.        Case $msg1 = $tab12
  58.            Run(""&$path12&"")
  59.        Case $msg1 = $tab13
  60.            Run(""&$path13&"")
  61.        Case $msg1 = $tab14
  62.            Run(""&$path14&"")
  63.        Case $msg1 = $tab15
  64.           Run(""&$path15&"")
  65.        Case $msg1 = $tab16
  66.           Run(""&$path16&"")
  67.        Case $msg1 = $tab17
  68.           Run(""&$path17&"")
  69.        Case $msg1 = $tab18
  70.           Run(""&$path18&"")
  71.        Case $msg1 = $tab21           
  72.           Runwait(""&@SystemDir&"\mstsc.exe /v 192.168.0.225")
  73.        Case $msg1 = $tab22
  74.           $destination = @TempDir & "\putty.exe"
  75.           FileInstall("putty.exe", $destination)
  76.           Run(""&$destination&" 192.168.0.252:23")
  77.        Case $msg1 = $tab23
  78.           $destination = @TempDir & "\NZWER.EXE"
  79.           FileInstall("NZWER.EXE", $destination)
  80.           Run(""&$destination&" 192.168.0.251:1")
  81.        Case $msg1 = $tab24           
  82.           $passwd = InputBox("权限核查", "请输入密码:", "", "*",50,50)
  83.     If @Error = 0 Then Run("net use Z: \\mm\netrw "&$passwd&" /user:110","",@SW_Hide)
  84.        Case $msg1 = $tab25
  85.           $passwd = InputBox("权限核查", "请输入密码:", "", "*",50,50)
  86.           If @Error = 0 Then
  87.               Run("net use Y: \\ecofe2\game$ "&$passwd&" /user:update","",@SW_Hide)
  88.               Run("net use X: \\ecofe2\game2$ "&$passwd&" /user:update","",@SW_Hide)
  89.               Run("net use W: \\ecofe2\menu$ "&$passwd&" /user:update","",@SW_Hide)
  90.     Endif
  91.        Case $msg1 = $tab26
  92.           $passwd = InputBox("权限核查", "请输入密码:", "", "*",50,50)
  93.           If @Error = 0 Then Run("net use V: \\mm\lc "&$passwd&" /user:110","",@SW_Hide)
  94.        Case $msg1 = $tab31
  95.           $destination3 = @TempDir & "\Fping.exe"
  96.           FileInstall("Fping.exe", $destination3)
  97.           Run(""&$destination3&"")
  98.    EndSelect
  99. Wend
复制代码
感谢Baidu,Google,Dreams8给我这次机会!
还要感谢我的爸爸妈妈!
HOHO
返回列表