访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容
下面是引用冰漾于2006-09-1 19:32发表的 : 不知道参数这样下对不对, 要看使用者手册才知道...Send("!n")简单来说就是让程式送出 Ctrl+N 或 Alt+N 的动作(没有仔细研究)...而且 WinWaitActive 意思是叫 AutoIt 等待程式 Active 之后才执行动作(我的意思是系统必须focus在该程式上面)....假如都缩起来, 系统的focus就不在这个程式上面, 怎么执行安装?.......
下面是引用v60i于2006-09-2 09:47发表的 : Send("!n")→是指Ctrl+N ← ×Send("!n")→是指Alt+N ← √.......
下面是引用yc421206于2006-09-2 16:38发表的 :谢谢各位的指正,不知有没有其它的指令可以使安装画面隐藏的呢
下面是引用莫力思雷靠呗于2006-09-2 16:43发表的 : 为何话一定要讲两次呢还有你的安装程式画面一定要在最上层,AUTOIT 才会有动作不然他判别不到视窗的名称是无法执行完成的
下面是引用 yc421206 于 2006-09-02 18:22 发表的 : 谢谢各位的回答真的没办法隐藏阿~"~那还是回去玩vb好了
Dear all:小弟根据板上大大所推荐之autoit软体,进行自动安装,小弟也因此上网晃了一下得知如何使用,以下是小弟所撰写之程式码,其中使用@SW_HIDE指令,想要将安装画面缩至最右下角,但是确无法隐藏,我猜大概是 Send("!n")指令的原因,请教版上高手是否有其他写法,谢谢!复制程式 ; 执行安装精灵 Run("D:\wpi\Install\Insight\Designer9\Des90.exe") WinWaitActive("Windows Installer") WinSetState("Windows Installer" , "" , @SW_HIDE) ; 开始安装 WinSetState("Micrografx Designer 9.0 Setup" , "Welcome to the Micrografx Designer 9.0 Installation Wizard" , @SW_HIDE) WinWaitActive("Micrografx Designer 9.0 Setup" , "Welcome to the Micrografx Designer 9.0 Installation Wizard") Send("!n") ; 授权认可 WinWaitActive("Micrografx Designer 9.0 Setup" , "License Agreement") Send("!a") Send("!n") ; 使用者资讯 WinWaitActive("Micrografx Designer 9.0 Setup" , "User Information") Send("!a") Send("{ENTER}") ; 安装资料夹 WinWaitActive("Micrografx Designer 9.0 Setup" , "Destination Folder") Send("!n") ; 安装类型 WinWaitActive("Micrografx Designer 9.0 Setup" , "Select Installation Type" , "&Next") Send("!t") Send("!n") WinWaitActive("Micrografx Designer 9.0 Setup" , "Ready to Install the Application" , "&Next") Send("!n") ; 安装程序 WinWaitActive("Micrografx Designer 9.0 Setup" , "Updating System") WinSetState("Micrografx Designer 9.0 Setup" , "" , @SW_HIDE) ; 安装完成 WinWaitActive("Micrografx Designer 9.0 Setup" , "Micrografx Designer 9.0 has been successfully installed") Send("{ENTER}") RegDelete("HKEY_CURRENT_USER\Software\iGxMedia")[/pre]