So geht es aberbei mir nicht :
[autoit]RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & "_64.exe/icon " & $IconPath & " /x64")
[/autoit]So geht es aberbei mir nicht :
[autoit]RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & "_64.exe/icon " & $IconPath & " /x64")
[/autoit]Jopp weil ein Leerzeichen fehlt und der Pfad fürs icon nicht mit Anführungszeichen umschlossen ist.
[autoit]
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_64.exe" /icon "' & $IconPath & '" /x64')
Ausserdem könnte deine Variable $I1 falsch sein, aber das musst du selbst wissen. Im Idealfall heisst deine exe dann nachher "test.au3_64.exe" im schlechteren Fall kompiliert er garnix, weil du die Endung au3 nicht in der Variable hast, aber das ist reine Spekulation, da du kein vollständiges Script gepostet hast.
Hmm warte ich poste mal das Script :
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Decompiler", 442, 83, 192, 124)
GUISetIcon("C:\Users\MasterXxX\Desktop\14.ico")
$Input1 = GUICtrlCreateInput("Speicher Ort", 8, 8, 265, 21)
$Input2 = GUICtrlCreateInput("Icon", 8, 40, 265, 21)
$Button1 = GUICtrlCreateButton("Durchsuchen", 280, 8, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Durchsuchen", 280, 40, 75, 25, $WS_GROUP)
$Radio1 = GUICtrlCreateRadio("x64", 8, 64, 41, 17)
$Radio2 = GUICtrlCreateRadio("x86", 56, 64, 41, 17)
$Radio3 = GUICtrlCreateRadio("Beides", 104, 64, 57, 17)
$Button3 = GUICtrlCreateButton("Start", 360, 24, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$MyDocsFolder2 = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
$Erstellen_Ort = FileSaveDialog("Save",$MyDocsFolder2,"Save(*.au3;*.txt;*.ini;*.dll)",16)
GUICtrlSetData($Input1,$Erstellen_Ort)
Case $Button2
$Erstellen_Ico = FileOpenDialog("Icon",@ScriptDir,"Icon(*.ico)")
GUICtrlSetData($Input2,$Erstellen_Ico)
Case $Button3
$I1 = GUICtrlRead($Input1)
$I2 = GUICtrlRead($Input2)
$Erstellen_Edit_Read = GUICtrlRead($Edit1)
FileWrite($I1,$Erstellen_Edit_Read)
If GUICtrlRead($Radio1) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_64.exe" /icon "' & $I2 & '" /x64')
EndIf
If GUICtrlRead($Radio2) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_32.exe /icon "' & $I2 & '" /x86')
EndIf
If GUICtrlRead($Radio3) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_32.exe /icon "' & $I2 & '" /x86')
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_64.exe /icon "' & $I2 & '" /x64')
EndIf
MsgBox(0,"Decompiler","Exe wurde erstellt")
EndSwitch
WEnd
Hmm fieleicht findest du den fehler weil jetzt kommt wieder error
>Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3
F:\compiletest.au3(34,54) : WARNING: $Edit1: possibly used before declaration.
$Erstellen_Edit_Read = GUICtrlRead($Edit1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Und was sagt dir diese Fehlermeldung? Du benutzt in der genannten Zeile die Variable $Edit1. Warum liefert das den Fehler, dass diese Variable nicht deklariert wurde? Ganz einfach, weil du diese im kompletten Script nicht benutzt hast. Wie soll eine Editbox ausgelesen werden wenn diese garnicht existiert?
Nein das Pass alles das ist nur ein Bauteil vom Script die Fehlermeldung kommt erst wenn ich auf den Button start klicke ud dort steht dan drinnen :
Error:Error opening the destenation file
Alles anzeigenHmm warte ich poste mal das Script :
Spoiler anzeigen
[autoit]#include <ButtonConstants.au3>
[/autoit] [autoit][/autoit] [autoit]
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Decompiler", 442, 83, 192, 124)
GUISetIcon("C:\Users\MasterXxX\Desktop\14.ico")
$Input1 = GUICtrlCreateInput("Speicher Ort", 8, 8, 265, 21)
$Input2 = GUICtrlCreateInput("Icon", 8, 40, 265, 21)
$Button1 = GUICtrlCreateButton("Durchsuchen", 280, 8, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Durchsuchen", 280, 40, 75, 25, $WS_GROUP)
$Radio1 = GUICtrlCreateRadio("x64", 8, 64, 41, 17)
$Radio2 = GUICtrlCreateRadio("x86", 56, 64, 41, 17)
$Radio3 = GUICtrlCreateRadio("Beides", 104, 64, 57, 17)
$Button3 = GUICtrlCreateButton("Start", 360, 24, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###While 1
[/autoit] [autoit][/autoit] [autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$MyDocsFolder2 = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
$Erstellen_Ort = FileSaveDialog("Save",$MyDocsFolder2,"Save(*.au3;*.txt;*.ini;*.dll)",16)
GUICtrlSetData($Input1,$Erstellen_Ort)
Case $Button2
$Erstellen_Ico = FileOpenDialog("Icon",@ScriptDir,"Icon(*.ico)")
GUICtrlSetData($Input2,$Erstellen_Ico)
Case $Button3
$I1 = GUICtrlRead($Input1)
$I2 = GUICtrlRead($Input2)
$Erstellen_Edit_Read = GUICtrlRead($Edit1)
FileWrite($I1,$Erstellen_Edit_Read)
If GUICtrlRead($Radio1) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_64.exe" /icon "' & $I2 & '" /x64')EndIf
[/autoit]
If GUICtrlRead($Radio2) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_32.exe /icon "' & $I2 & '" /x86')
EndIf
If GUICtrlRead($Radio3) = 1 Then
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_32.exe /icon "' & $I2 & '" /x86')
RunWait('"' & StringTrimRight(@AutoItExe, 15) & 'Aut2Exe\Aut2exe.exe" /in "' & $I1 & '" /out "' & $I1 & '_64.exe /icon "' & $I2 & '" /x64')
EndIf
MsgBox(0,"Decompiler","Exe wurde erstellt")
EndSwitch
WEndHmm fieleicht findest du den fehler weil jetzt kommt wieder error
Was genau soll man von dem Titel der GUI halten?...
?sry es heit compiler net decompiler ich verwechsel das immer sry?