006001 发表于 2012-10-4 17:06:42

请教一个编译加载程序的问题?

先在这里祝大家国庆快乐!
在研究au3中碰到一个问题,希望能得到大家的帮助。
我现在手上有一个a.au3源码,b.exe程序
我想a.au3编译后把b.exe一同编译进去,并在新生成出来的exe中,当运行软件后就同时运行b.exe
希望能得到大家的帮助,初学au3,不知哪位大大能给我一个这样的完整代码,方便学习和测试,网上找了几个都不行,在此先谢谢了。我知道是用FileInstall函数来操作。

veket_linux 发表于 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

006001 发表于 2012-10-5 09:14:14

回复 2# veket_linux


    非常感谢您的帮助.

006001 发表于 2012-10-5 09:15:58

本来想把这个帖子改成已解决,但没看到这个分类,请版主改下主题分类,谢谢。

rqwjqlje 发表于 2012-10-8 21:26:46

支持!很不错啊,支持

呵呵。。。。。 http://pimg.163.com/club/newclub/images/PP3.gif

















http://qb.lqualyn.com/images/sigline.gif
防辐射服肚兜

轩辕小妖 发表于 2012-10-8 21:42:22

回复 4# 006001


    木有那个分类了,自己看版规说明,直接在标题前面或者后面加[已解决]~~

881966 发表于 2012-10-9 08:27:36

学习学习{:face (411):}
页: [1]
查看完整版本: 请教一个编译加载程序的问题?