Tsongkie Posted February 17, 2009 Share Posted February 17, 2009 (edited) #Region;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=..\..\..\Desktop\free_icons\Garfield2.ico #EndRegion;**** Directives created by AutoIt3Wrapper_GUI **** #RequireAdmin ShellExecute("Aut2exe.exe",'/in "/BIN/prog.au3" /out "../THISISnewprogram.exe" /comp 2 /pack /icon "/BIN/icon.ico" /Bin "/BIN/AutoItSC.BIN" ',@ScriptDir) Ok whats wrong with this code? The actual code compiles in windows xp but not in windows vista. Thanks autoit Gurus Edited February 17, 2009 by Tsongkie Link to comment Share on other sites More sharing options...
BrettF Posted February 17, 2009 Share Posted February 17, 2009 Maybe make it an actual path? "' & @scriptdir & '/BIN/prog.au3" etc Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Tsongkie Posted February 17, 2009 Author Share Posted February 17, 2009 The error that Im getting is cannot find aut2exe. Link to comment Share on other sites More sharing options...
BrettF Posted February 17, 2009 Share Posted February 17, 2009 (edited) Well what does that tell you? Try this, and tell me why it should work. ShellExecute(@ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2exe.exe", '/in "/BIN/prog.au3" /out "../THISISnewprogram.exe" /comp 2 /pack /icon "/BIN/icon.ico" /Bin "/BIN/AutoItSC.BIN" ', @ScriptDir) If you are using x64 it might not work... Edited February 17, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Tsongkie Posted February 17, 2009 Author Share Posted February 17, 2009 why wouldn't it work in x64? Link to comment Share on other sites More sharing options...
BrettF Posted February 17, 2009 Share Posted February 17, 2009 Because I'm not 100% positive whether @ProgramFilesDir returns for example: C:\Program Files or C:\Program Files (x86) And since I can't be bothered testing, it might not work... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
JackDinn Posted March 14, 2009 Share Posted March 14, 2009 ok iv got the same problem but mine has a proper direct path. ShellExecute("C:\Program Files\JDAST\readme.txt") dont work in Vista x64, error is cant find "C:\Program Files\JDAST\readme.txt" the file is there and exactly spelt right (case as well) but it fine in xp . any help for this one thx. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
BrettF Posted March 14, 2009 Share Posted March 14, 2009 Try @ProgramfilesDir & "\JDAST......." Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
JackDinn Posted March 14, 2009 Share Posted March 14, 2009 na that was what i started with but it dident work so that's why i tried a full path. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
JackDinn Posted March 14, 2009 Share Posted March 14, 2009 so iv just did this instead. $line = "" $file = FileOpen("C:\Program Files\JDAST\readme.txt", 0) $hgui = GUICreate("Help & About", 600, 600, 0, 0, $WS_SIZEBOX, -1, $form1) $hlist = GUICtrlCreateEdit("", 0, 0, 600, 600,$WS_VSCROLL) GUICtrlSetFont($hlist,12) GUISetState() While 1 $linex = FileReadLine($file) & @CRLF $line = $line & $linex If @error = -1 Then ExitLoop WEnd GUICtrlSetData($hlist, $line) but still leaves the question how you would run a .txt .lnk etc. on a x64 Vista pc. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
ProgAndy Posted March 14, 2009 Share Posted March 14, 2009 you could try to use AutoIt in 64bit-mode or look at these funcs: http://msdn.microsoft.com/en-us/library/aa384187(VS.85).aspx to disable file system redirection. *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
JackDinn Posted March 14, 2009 Share Posted March 14, 2009 (edited) well my solution 2 post's abouve didnt work on x64 either , ahhh i duno, i never designed my prog to work on vista anyway and its only the help file so i'll prob try to check for vista and disable the help option. thx for the link but that is all above my head Edited March 14, 2009 by JackDinn Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
DCCD Posted March 15, 2009 Share Posted March 15, 2009 $line = "" $file = FileOpen(@ProgramFilesDir & "\JDAST\readme.txt", 0) $hgui = GUICreate("Help & About", 600, 600, 0, 0, $WS_SIZEBOX, -1, $form1) $hlist = GUICtrlCreateEdit("", 0, 0, 600, 600,$WS_VSCROLL) GUICtrlSetFont($hlist,12) GUISetState() While 1 $linex = FileReadLine($file) & @CRLF $line = $line & $linex If @error = -1 Then ExitLoop WEnd GUICtrlSetData($hlist, $line) Compile for System x64 [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
JackDinn Posted March 15, 2009 Share Posted March 15, 2009 (edited) and if i compile it for x64 will it still work on x32? cos im not guna release two versions of the same prog just for x64's sake . Edited March 15, 2009 by JackDinn Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D 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