Guten Abend allerseits,
Ich habe ein Problem mit der Umwandlung einer au3 Datei in eine exe Datei. Während die Ausführung der .au3 Datei wunderbar funktioniert, bekomme ich bei der .exe Datei, die ich mit F7 generiert habe, immer den Fehler "AutoIt Error: Unable to open the script file", das ganze kommt zweimal beim einmaligen Ausführen. Ich habe bereits den Editor wie auch AutoIt von der offiziellen Seite neu heruntergeladen und installiert ohne Änderung. Googlen und suche in diesem Forum haben mir bislang auch nicht weitergeholfen.
Falls es helfen sollte, hier der Code (wechselt zwischen zwei verschiedenen Ausgabegeräten):
Run("c:\windows\system32\control.exe mmsys.cpl")
WinWaitActive("Sound")
Send("{DOWN}")
If ControlCommand("Sound", "", 1002, 'IsEnabled') Then
ControlClick("Sound", "Als Standard", 1002)
Else
Send("{DOWN}")
ControlClick("Sound", "Als Standard", 1002)
EndIf
WinClose("Sound")
Alles anzeigen
Die .au3 Datei und die .exe liegen in einem Ordner auf dem Desktop, der meiner Meinung nach alle Rechte hat. Wie gesagt, wenn ich die .au3 Datei ausführe, funktioniert auch alles wunderbar.
Hoffe ihr könnt mir mit diesem (wahrscheinlich recht trivialem) Problem weiterhelfen.
Danke schonmal und schönen Abend noch,
hYrsch