找回密码
 加入
搜索
查看: 2211|回复: 6

[AU3基础] 请教一个编译加载程序的问题?

  [复制链接]
发表于 2012-10-4 17:06:42 | 显示全部楼层 |阅读模式
先在这里祝大家国庆快乐!
在研究au3中碰到一个问题,希望能得到大家的帮助。
我现在手上有一个a.au3源码,b.exe程序
我想a.au3编译后把b.exe一同编译进去,并在新生成出来的exe中,当运行软件后就同时运行b.exe
希望能得到大家的帮助,初学au3,不知哪位大大能给我一个这样的完整代码,方便学习和测试,网上找了几个都不行,在此先谢谢了。我知道是用FileInstall函数来操作。
发表于 2012-10-4 20:06:58 | 显示全部楼层

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
FileInstall("C:\WINDOWS\notepad.exe", "d:\notepad.exe")
If FileExists("d:\notepad.exe") Then
        Run("d:\notepad.exe")
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Button1 = GUICtrlCreateButton("Button1", 168, 104, 129, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        MsgBox(0, "hello autoit!", "")
        EndSwitch
WEnd
 楼主| 发表于 2012-10-5 09:14:14 | 显示全部楼层
回复 2# veket_linux


    非常感谢您的帮助.
 楼主| 发表于 2012-10-5 09:15:58 | 显示全部楼层
本来想把这个帖子改成已解决,但没看到这个分类,请版主改下主题分类,谢谢。
发表于 2012-10-8 21:26:46 | 显示全部楼层

支持!很不错啊,支持

呵呵。。。。。


















防辐射服肚兜
发表于 2012-10-8 21:42:22 | 显示全部楼层
回复 4# 006001


    木有那个分类了,自己看版规说明,直接在标题前面或者后面加[已解决]~~
发表于 2012-10-9 08:27:36 | 显示全部楼层
学习学习
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-20 09:30 , Processed in 0.082616 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表