roronoa Posted September 3, 2012 Share Posted September 3, 2012 sorry i make a new threat again finnaly i can make some script with autoit,thx for great help here i already make exe from au3 file,but how i can make all file to be one single file exe portable??i stuck here,best regard for a help me:) Link to comment Share on other sites More sharing options...
FireFox Posted September 3, 2012 Share Posted September 3, 2012 sorry i make a new threat againfinnaly i can make some script with autoit,thx for great help herei already make exe from au3 file,but how i can make all file to be one single file exe portable??i stuck here,best regard for a help me:)Hi,I don't really understand the way you want to merge your scripts, take a look at the function FileInstall.Br, FireFox. Link to comment Share on other sites More sharing options...
roronoa Posted September 3, 2012 Author Share Posted September 3, 2012 Hi,I don't really understand the way you want to merge your scripts, take a look at the function FileInstall.Br, FireFox.thx for helpi try to joining two portable program.bitvise tunnelier and proxifier with autoit for a single exe,i already done with au3 and exe from au3,i need to jmerge all file include pict,tunnelier,proxifer portable etc into a single exe file portable to,wich i should to do for next step??sorry my english not very well:) Link to comment Share on other sites More sharing options...
FireFox Posted September 3, 2012 Share Posted September 3, 2012 (edited) Maybe this : #NoTrayIcon ;this is your main exe FileInstall("pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted And add the two other exe. Br, FireFox. Edited September 3, 2012 by FireFox Link to comment Share on other sites More sharing options...
roronoa Posted September 3, 2012 Author Share Posted September 3, 2012 Maybe this : #NoTrayIcon ;this is your main exe FileInstall(@ScriptDir & "pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted And add the two other exe. Br, FireFox. i a litle confuse,i make this script,wich part in my script must input the script from u?? expandcollapse popup#include #include #include #include ;untuk membuat menu d tray Opt("TrayOnEventMode", 1) Opt("TrayMenuMode", 3) Global $hTray_Show_Item = TrayCreateItem("Show") TrayItemSetOnEvent(-1, "On_Tray_Show") ;menandakan func show d tray dengan nama fungsi on_Tray_Show TrayCreateItem("") Global $hTray_Exit_Item = TrayCreateItem("Exit") TrayItemSetOnEvent(-1, "On_Exit") ;menandakan func exit d tray dengan nama fungsi on_Exit #Region ### START Koda GUI section ### Form=E:AutoItbahan autoitroronoaTG.kxf $Form1 = GUICreate("Form1", 151, 296, 327, 220) $Pic1 = GUICtrlCreatePic(@ScriptDir &"roronoa-zoro.jpg", 0, 0, 148, 292) GuiCtrlSetState(-1,$GUI_DISABLE) ;berfungsi disable image supaya tombol2 bisa d klik, wajib d pakai jika menggunakan image..!!! $START = GUICtrlCreateButton("START", 72, 16, 75, 25) $STOP = GUICtrlCreateButton("STOP", 72, 136, 75, 25) $HIDE = GUICtrlCreateButton("HIDE", 72, 184, 75, 25) $EXIT = GUICtrlCreateButton("EXIT", 72, 232, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $start start() Case $stop stop() Case $hide hide() Case $exit on_exit() EndSwitch WEnd func start() $HOST='s9.usassh.com' $PORT='80' $USER='user2024' $PASS='usassh.com' $Hajar = "-host="& $HOST &" -port="& $PORT &" -username=" & $USER & " -password=" & $PASS & " -proxy=n -hide=main,trayWRC,traySFTP,trayRDP,trayPopups -title=roronoa" Sleep(1000) Run(@ProgramFilesDir & "Bitvise Tunneliertunnelier.exe -profile=roronoa.tlp -loginOnStartup " & $Hajar, @ScriptDir, @SW_HIDE) ;EKSEKUSI BITTVISE TUNNELIER Sleep(1000) Run(@ScriptDir & 'Proxifier.exe', @ScriptDir,@SW_HIDE) EndFunc func hide() GUISetState(@SW_HIDE, $Form1) EndFunc Func On_Tray_Show() If TrayItemGetText($hTray_Show_Item) = "Show" Then ;fungsi jika d klik show d tray ; TrayItemSetText($hTray_Show_Item, "Hide") GUISetState(@SW_SHOWNORMAL, $Form1);memunculkan form gui secara normal ;Else ; TrayItemSetText($hTray_Show_Item, "Hide") ; GUISetState(@SW_HIDE, $FormUtama) EndIf EndFunc Func stop() If ProcessExists("tunnelier.exe") Then ProcessClose("tunnelier.exe") Sleep(100) If ProcessExists ("Proxifier.exe") Then ProcessClose("Proxifier.exe") Sleep(100) FileDelete(@AppDataDir & "tunnelier.exe") Sleep(200) FileDelete(@AppDataDir & "Proxifier.exe") EndFunc Func on_exit() Exit EndFunc Link to comment Share on other sites More sharing options...
Exit Posted September 3, 2012 Share Posted September 3, 2012 (edited) @Firefox Your sample will not work. Try to complle it and you will get an error. Fileinstall() does not allow macros or variables for the source file. See help for fileinstall. The source path of the file to compile. This must be a literal string; it cannot be a variable or the result of a function call. It can be a relative path (using . or .. in the path) to the source file (.au3). FileInstall(".pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted would be ok. Edited September 3, 2012 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
FireFox Posted September 3, 2012 Share Posted September 3, 2012 i a litle confuse,i make this script,wich part in my script must input the script from u??After your includes.@FirefoxYour sample will not work. Try to complle it and you will get an error.Fileinstall() does not allow macros or variables for the source file. See help for fileinstall.Of course I know it. fixed now.Br, FireFox. Link to comment Share on other sites More sharing options...
stormbreaker Posted September 3, 2012 Share Posted September 3, 2012 Take a look at source code for making Virtual Box portable. armoros 1 ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now