arkhe 发表于 2011-8-1 23:39:44

3DMark06Install Scipt【已解决】

本帖最后由 arkhe 于 2011-8-16 22:53 编辑


WinMinimizeAll()
sleep(1000)
Regwrite("HKEY_LOCAL_MACHINE\SOFTWARE\Futuremark\3DMark06","KeyCode","REG_SZ","3DM06-7WXYJ-XV15P-P37P8-JWY50-7MD1Q")
Sleep(3000)

Run("3DMark06_v110_installer.exe")
WinWaitActive("3DMark06 - InstallShield Wizard", "Welcome to the InstallShield Wizard")
Send("{ENTER}")
WinWaitActive("3DMark06 - InstallShield Wizard", "License Agreement")
Send("{UP}")
Send("{ENTER}")
WinWaitActive("3DMark06 - InstallShield Wizard", "Setup will install 3DMark06 in the following folder")
Send("{ENTER}")
WinWaitActive("3DMark06 - InstallShield Wizard", "The wizard is ready to begin installation")
Send("{ENTER}")


WinWait("Question")
WinActive("Question")
ControlClick("Question", "", "Button1")
Send("{ENTER}")
WinWait("Installing Microsoft(R) DirectX(R)", "Welcome to setup for DirectX")
WinActivate("Installing Microsoft(R) DirectX(R)", "Welcome to setup for DirectX")
Send("{Tab}")
Send("{ENTER}")
WinWait("Installing Microsoft(R) DirectX(R)", "DirectX Runtime Install:")
WinActivate("Installing Microsoft(R) DirectX(R)", "DirectX Runtime Install:")
Send("{ENTER}")
WinWait("Installing Microsoft(R) DirectX(R)", "Installation Complete")
WinActivate("Installing Microsoft(R) DirectX(R)", "Installation Complete")
Send("{ENTER}")


WinWaitActive("OpenAL Installer")
ControlFocus("OpenAL Installer","","OK")
ControlClick("OpenAL Installer","","OK")
WinWaitActive("OpenAL Installer Message")
Send("{ENTER}")


WinWait("3DMark06 - InstallShield Wizard", "InstallShield Wizard Complete")
WinActivate("3DMark06 - InstallShield Wizard", "InstallShield Wizard Complete")
Send("{SPACE}")
Send("{ENTER}")


Run("3dmark06_v110_0906a_patch.exe")
WinWait("3DMark06 - InstallShield Wizard", "Welcome to the InstallShield Wizard for 3DMark06")
Send("{ENTER}")
WinWait("3DMark06 - InstallShield Wizard", "License Agreement")
Send("{UP}")
Send("{ENTER}")
WinWait("3DMark06 - InstallShield Wizard", "Update Complete")
Send("{SPACE}")
Send("{ENTER}")

arkhe 发表于 2011-8-1 23:41:30

很简单的,但是有几个疑惑
这个代码不是初版,明天找到初版,再提出我的疑惑,希望能够解答。

happytc 发表于 2011-8-2 00:01:33

现在Naive们发帖,都是这种方式了呀,要吗直接几个字
要吗拷别人代码一放,然后不说啥问题,让你慢慢猜

www378660084 发表于 2011-8-2 00:04:21

直接发到安装区得了
页: [1]
查看完整版本: 3DMark06Install Scipt【已解决】