Jump to content

Windows Vista And Windows XP


Tsongkie
 Share

Recommended Posts

#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 by Tsongkie
Link to comment
Share on other sites

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 by BrettF
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 weeks later...

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

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

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

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 :P

Edited 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

$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

Link to comment
Share on other sites

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...