| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 4:01 pm Titel: ahk2exe automatisieren.. |
|
|
Hallo experten (profis, interessierte, schaulustige, newbies etc)!
ich habe schon viel herumprobiert, aber bekomme es nich gebacken, mit einem script automatisch eine ahkdatei (die ich ihm vorher angebe) in eine .exe datei umzuwandeln. bin wohl zu doooooof dazu.
gibts da iwie eine extra funktion dazu?
möchte viele dateien umwandeln und nicht jedes mal ahk2exe anwählen, eintragen etc..
bitte um schnelle antwort, muss es morgen fertig haben
vielen dank im voraus..
JaBi |
|
| Nach oben |
|
 |
denick
Anmeldedatum: 15.09.2006 Beiträge: 1240 Wohnort: Berlin
|
Verfasst am: Fr Nov 17, 2006 4:12 pm Titel: |
|
|
Moin,
erst einmal gibt es im Kontextmenü für AHK Dateien den Eintrag "Compile Script", der eine EXE mit Standardeinstellungen erzeugt.
Dann gäbe es noch http://de.autohotkey.com/forum/viewtopic.php?t=771, falls Du damit nicht zufrieden bist. _________________ Hilfe zur Hilfe
(de)nick |
|
| Nach oben |
|
 |
BoBo Gast
|
Verfasst am: Fr Nov 17, 2006 4:15 pm Titel: |
|
|
| Zitat: | Command Line: The compiler can be run from the command line with the following parameters:
Ahk2exe.exe /in MyScript.ahk [/out MyScript.exe][/icon MyIcon.ico][/pass password]
Parameters containing spaces should be enclosed in double quotes. If the "out" file is omitted, the EXE will have the same base filename as the script itself. |
| Code: | | !y::Run, Ahk2exe.exe /in MeinScript.ahk /out SuperScript.exe /icon MeinLieblingsIcon.ico /pass $up3r5t4R |
|
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 4:23 pm Titel: |
|
|
kann ich auch schreiben:
Run, F:\Autohotkey\Ahk2exe.exe /in MeinScript.ahk /out SuperScript.exe /icon MeinLieblingsIcon.ico /pass $up3r5t4R
?? |
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 4:24 pm Titel: |
|
|
ja, ne?
vielen, vielen dank..
mache mich gleich an die arbeit..
thxthxthx  |
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 7:04 pm Titel: |
|
|
ich glaub ich krieg gleich ne kriese!!!!!!!!!!!
nix klappt!
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah
was is hier FALSCH?
| Code: | 1 = C:\Dokumente und Einstellungen\Jannis\Desktop\ahk\xx.ahk
SplitPath, 1, 1FileName, 1dir,, 1NoExt
SplitPath, a_ahkpath,, ahkdir
Run, %ahkdir%\Compiler\Ahk2exe.exe /in %1% /out %1dir%\%1noext%.exe |
sry, musste mal druck ablassen..
thx fürs zuhören..  |
|
| Nach oben |
|
 |
Tuncay
Anmeldedatum: 28.10.2006 Beiträge: 127 Wohnort: Berlin
|
Verfasst am: Fr Nov 17, 2006 7:39 pm Titel: |
|
|
Ich glaube die Variable "1" in deinem Code aus dem letzten Post macht ärger, probiere mal einen anderen Namen dafür. | Code: | Path = C:\Dokumente und Einstellungen\Jannis\Desktop\ahk\xx.ahk
SplitPath, Path, PathFileName, PathDir,, PathNoExt |
_________________ Manchmal ist es /falsch/ das "richtige" zu tun. |
|
| Nach oben |
|
 |
BoBo Gast
|
Verfasst am: Fr Nov 17, 2006 8:19 pm Titel: |
|
|
Das sagt die Hilfe zu Run: | Zitat: | | If a parameter contains spaces, it is safest to enclose it in double quotes (even though it may work without them in some cases). |
| Zitat: | ich glaub ich krieg gleich ne kriese!!!!!!!!!!!
nix klappt! | Kann ich bestätigen. Krise schreibt sich ohne e. OK, Griesbrei mit.
Und ich denke - die '1' ist es nicht ...  |
|
| Nach oben |
|
 |
BoBo Gast
|
Verfasst am: Fr Nov 17, 2006 8:22 pm Titel: |
|
|
| Zitat: | | Krise schreibt sich ohne e |
Ok, Ok, mit einem e  |
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 8:43 pm Titel: |
|
|
lol
zeigt mir immer noch den fehler (!?)
---------------------------
Ahk2Exe
---------------------------
Command Line Parameters:
Ahk2Exe.exe /in infile.ahk [/out outfile.exe] [/icon iconfile.ico] [/pass password]
---------------------------
OK
---------------------------
an
das is nich normal!! ^^
arg.. und ich möchte doch nur ein paar dateien umwandeln...... |
|
| Nach oben |
|
 |
BoBo Gast
|
Verfasst am: Fr Nov 17, 2006 8:56 pm Titel: |
|
|
Is das jetzt'n Joke oder was?
.. erlär mir bitte was die Klammer in dieser Zeile bewirken sollen: | Zitat: | | Ahk2Exe.exe /in infile.ahk [/out outfile.exe] [/icon iconfile.ico] [/pass password] |
|
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Fr Nov 17, 2006 9:05 pm Titel: |
|
|
diese fehlermeldung habsch bekommen.
das soll bedeuten, dass man die werte einsetzen kann oder es sein lassen kann
Fehlermeldung:
---------------------------
Ahk2Exe
---------------------------
Command Line Parameters:
Ahk2Exe.exe /in infile.ahk [/out outfile.exe] [/icon iconfile.ico] [/pass password]
---------------------------
OK
---------------------------
javascript:emoticon(' ')
Mr. Green |
|
| Nach oben |
|
 |
Tuncay
Anmeldedatum: 28.10.2006 Beiträge: 127 Wohnort: Berlin
|
Verfasst am: Fr Nov 17, 2006 9:07 pm Titel: |
|
|
Probiers mal hiermit: | Code: | Path = C:\Dokumente und Einstellungen\Jannis\Desktop\ahk\xx.ahk
SplitPath, Path , Path FileName, PathDir,, PathNoExt
SplitPath, A_AhkPath,, AhkDir
Run, "%aAhkDir%\Compiler\Ahk2exe.exe" /in "%Path%" /out "%PathDir%\%PathNoExt%.exe" |
(ungetestet) _________________ Manchmal ist es /falsch/ das "richtige" zu tun. |
|
| Nach oben |
|
 |
Thalon
Anmeldedatum: 25.10.2005 Beiträge: 1896 Wohnort: Österreich
|
Verfasst am: Fr Nov 17, 2006 9:28 pm Titel: |
|
|
| Code: | RegRead, AutoHotkey_Path, HKEY_LOCAL_MACHINE, Software\AutoHotkey\, InstallDir
IfNotExist, %AutoHotkey_Path%\Compiler\AutoHotkeySC.bin
{
msgbox, 262160, Error, No Autohotkey-Installation found!, 5
ExitApp
}
AHK_Path = %A_ScriptDir%\Test.ahk
EXE_Path = %A_ScriptDir%\Test.exe
Compile_Password = 123456
RunWait,"%AutoHotkey_Path%\Compiler\Ahk2Exe.exe" /in "%AHK_Path%" /out "%EXE_Path%" /pass "%Compile_Password%" | Thalon _________________ Mein Motto: Hilfe zur Selbsthilfe!
Teildeutsche Hilfe (CHM)!! und Deutsche Online-Hilfe |
|
| Nach oben |
|
 |
JaBi
Anmeldedatum: 17.11.2006 Beiträge: 37
|
Verfasst am: Sa Nov 18, 2006 2:40 pm Titel: |
|
|
thx thalon!!
sry tuncay, deins hat leider nich funktioniert, thalon: deins musste ich jetzt auch noch mal umändern..
hier sie richtige version:
| Code: |
splitpath, A_ahkpath,, autohotkey_path
IfNotExist, %AutoHotkey_Path%\Compiler\AutoHotkeySC.bin
{
msgbox, 262160, Error, No Autohotkey-Installation found!, 5
ExitApp
}
AHK_Path = %A_ScriptDir%\xx.ahk
EXE_Path = %A_ScriptDir%\xx.exe
Compile_Password = 123456
RunWait,"%AutoHotkey_Path%\Compiler\Ahk2Exe.exe" /in "%AHK_Path%" /out "%EXE_Path%" /pass "%Compile_Password%"
|
vielen dank nochmal..
cu
^^ |
|
| Nach oben |
|
 |
|