AM电脑吧 - Win10精简版系统_Win11精简版_Win7旗舰版

Yes
查看: 18637|回复: 42
收起左侧

[其它] XP-OEM修改器

[复制链接]
ampc8224

签到天数: 230 天

[LV.7]七个CPU

id dmqhcx88 发表于 2011-08-18 23:25:49

  1. #include <GUIConstants.au3>
  2. #include <EditConstants.au3>
  3. #include <array.au3>
  4. #include <IE.au3>
  5. Global $SFile
  6. IniWrite(@SystemDir & "\oeminfo.ini", "Support Information", "", "")
  7. GUICreate("XP-OEM修改器", 325 ,300)
  8. GUICtrlCreateGroup("", 5, 1, 315, 295)
  9. GUICtrlCreateLabel("注册到:", 170, 15)
  10. $oemwink1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
  11. $oemInput = GUICtrlCreateInput("", 170, 30, 145,16)
  12. GUICtrlSetData($oemInput, ($oemwink1))
  13. $oemwink2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization")
  14. $oemInput2 = GUICtrlCreateInput("", 170, 50, 145,16)
  15. GUICtrlSetData($oemInput2, ($oemwink2))
  16. $oemwink3 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductId")
  17. $oemInput3 = GUICtrlCreateInput("", 170, 70, 145,16)
  18. GUICtrlSetData($oemInput3, ($oemwink3))
  19. $oemwink4 = IniRead(@SystemDir & "\OemInfo.ini", "General", "Manufacturer", "")
  20. GUICtrlCreateLabel("支持信息:", 170, 92)
  21. $oemInput4 = GUICtrlCreateInput("", 170, 115, 145,16)
  22. GUICtrlSetData($oemInput4, ($oemwink4))
  23. $oemwink5 = IniRead(@SystemDir & "\OemInfo.ini", "General", "Model", "")
  24. $oemInput5 = GUICtrlCreateInput("", 170, 140, 145,16)
  25. GUICtrlSetData($oemInput5, ($oemwink5))
  26. $oemInput6 = GUICtrlCreateEdit("", 10, 160, 305, 103, $ES_WANTRETURN)
  27. $wink6 = IniReadSection(@SystemDir & "\oeminfo.ini", "Support Information")
  28.     For $i = 1 To $wink6[0][0]
  29. GUICtrlSetData($oemInput6, $wink6[$i][1]&@CRLF,"1")
  30.     Next
  31. $oempic = FileGetShortName(@SystemDir & "\OemLogo.bmp")
  32. GUICtrlCreatePic($oempic, 15, 15, 145, 115)
  33. $openoem = GUICtrlCreateButton("查看OEM", 10, 138, 70, 20)
  34. $openpic = GUICtrlCreateButton("自定义图片", 85, 138, 80, 20)        
  35. $oemButton1 = GUICtrlCreateButton("删除OEM信息",125, 265 ,80 ,25)
  36. $oemButton2 = GUICtrlCreateButton("确 定",210, 265 ,50 ,25)
  37. $oemButton3 = GUICtrlCreateButton("关 闭",265, 265 ,50 ,25)
  38. $oemButton4 = GUICtrlCreateButton("访问论坛",40, 265 ,80 ,25)
  39.   
  40. GUISetState(@SW_SHOW)
  41. While 1
  42.         $nmsg = GUIGEtMsg()
  43.         Select
  44.                 Case $nmsg = $GUI_EVENT_CLOSE
  45.                         ExitLoop
  46.                                         Case $nmsg = $openpic
  47. $message = "打开你所选的*.bmp格式"
  48. $SFile = FileOpenDialog($message, @DesktopCommonDir & "", "不大于118X115的位图文件(*.bmp)", 1)
  49.   IF $SFile Then
  50.         GUICtrlCreatePic($SFile, 15, 15, 145, 115)
  51. Sleep(500)
  52.         $ok2oempic = GUICtrlCreatePic($SFile, 15, 15, 145, 115)
  53. EndIf
  54.                 Case $nmsg = $openoem
  55.         Run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl ")
  56.         
  57.                 Case $nmsg = $oemButton1
  58.         FileDelete(@SystemDir & "\OemInfo.ini")
  59.         FileDelete(@SystemDir & "\OemLogo.bmp")
  60.                 MsgBox(64, "", "已经删除了OEM信息!")
  61. While 1
  62. $nMsg = GUIGetMsg()
  63. Switch $nMsg
  64. Case $GUI_EVENT_CLOSE
  65. Exit
  66. EndSwitch
  67. WEnd
  68.         Case $nmsg = $oemButton2
  69.                 $oemokInput = GUICtrlRead ($oemInput)
  70.                 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner", "REG_SZ", $oemokInput)
  71.                 $oemokInput2 = GUICtrlRead ($oemInput2)
  72.                 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", "REG_SZ", $oemokInput2)
  73.                 $oemokInput3 = GUICtrlRead ($oemInput3)
  74.                 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductId", "REG_SZ", $oemokInput3)
  75.                 $oemokInput4 = GUICtrlRead ($oemInput4)
  76.                 $sIni =  @SystemDir & "\oeminfo.ini"
  77.                 IniWrite(@SystemDir & "\OemInfo.ini", "General", "Manufacturer",$oemokInput4)
  78.                 $oemokInput5 = GUICtrlRead ($oemInput5)
  79.                 IniWrite(@SystemDir & "\OemInfo.ini", "General", "Model",$oemokInput5)
  80.                                 $oemokInput6 = GUICtrlRead ($oemInput6)
  81.                                 $t = StringSplit($oemokinput6, @LF)
  82. For $i = 1 To UBound($t) - 1
  83. $t[$i] = 'Line' & $i & '=' & $t[$i]
  84. Next
  85.                 IniWriteSection(@SystemDir & "\OemInfo.ini", "Support Information", _ArrayToString($t, @LF, 1))
  86. FileCopy($SFile, @SystemDir & "\OemLogo.bmp")
  87.         MsgBox(64, "", "OEM设置完毕,请点击 查看OEM")
  88.         
  89.                 Case $nmsg = $oemButton3
  90.                 Exit
  91.    Case $nmsg = $oemButton4
  92.    $oIE = _IECreate ("https://www.ampc8.com/")
  93. EndSelect
  94.         WEnd
复制代码

评分

参与人数 1电脑 +6 收起 理由
ampc84 admin + 6 很经典的文章,谢谢分享.

本文地址: https://www.ampc8.com/thread-3079-1-1.html
上一篇:一份来自windows8运行团队的介绍
下一篇:QQ找茬辅助工具
回复

举报

ampc8962

签到天数: 4 天

[LV.2]二兆带宽

id fancy 发表于 2013-11-24 23:25:43
下载看看找了好久了呀
回复

举报

ampc810336

签到天数: 3806 天

[LV.Master]顶级配置

id leo 发表于 2013-06-17 08:43:05
实用就收藏。
回复

举报

ampc89701

签到: Lazy

id huangshan 发表于 2013-06-16 23:26:24
来学习学习,谢谢分享
回复

举报

ampc812533

签到天数: 13 天

[LV.3]三流显示器

id Ghost-X 发表于 2013-02-27 13:26:00
看看  
回复

举报

ampc811588

签到天数: 3847 天

[LV.Master]顶级配置

id 夏季午休 发表于 2013-01-06 09:34:10
学习学习         
回复

举报

ampc885

签到: Lazy

id thxuyu 发表于 2013-01-06 08:53:43
好东西,下载备用
回复

举报

ampc82742

签到: Lazy

id 清风无影 发表于 2012-11-20 21:04:50
本帖最后由 清风无影 于 2012/11/20 21:09 编辑

源码吗,下载学习下。

试了下,很好。很漂亮啊
回复

举报

ampc8347

签到: Lazy

id hfey 发表于 2012-11-08 18:14:34
好东西,收藏


回复

举报

ampc88690

签到: Lazy

id zqqdnb 发表于 2012-07-20 13:09:10
学习使人进步,哈哈……
回复

举报

您需要登录后才可以回帖 登录 | 验证注册

Powered by AMpc8.Com (晋ICP备13003365号ghs 晋公网安备 14090202000112号 |GMT+8, 2024/5/6 22:23 |
快速回复 返回顶部 返回列表