AutoHotkey Community

It is currently May 27th, 2012, 5:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ahk2exe problem
PostPosted: September 21st, 2010, 9:12 am 
Offline

Joined: February 19th, 2007, 9:03 am
Posts: 338
Location: Czech Republic
Good morning.
Can you help me with this problem?
Code:
setworkingdir %A_ScriptDir%
ver=2009.09
outputdir=build/%ver%

filecreatedir, %outputdir%

accppt=sources/accppt
accviewer=sources/accviewer
bookreader=sources/bookrader
calc=sources/calc
htmlw=sources/htmlw
mtext=sources/mtext
updater=sources/updater


runwait, Ahk2exe.exe /in "%accppt%.ahk" /out "%outputdir%/%accppt%.exe" /NoDecompile
soundplay, done.mid, wait
runwait, Ahk2exe.exe /in "%accviewer%.ahk" /out "%outputdir%/%accviewer%.exe" /NoDecompile
soundplay, done.mid, wait
;runwait, Ahk2exe.exe /in "" /out "%appname%.exe" /NoDecompile
soundplay, done.mid, wait
;runwait, Ahk2exe.exe /in "" /out "%appname%.exe" /NoDecompile
soundplay, done.mid, wait
;runwait, Ahk2exe.exe /in "" /out "%appname%.exe" /NoDecompile
soundplay, done.mid, wait
;runwait, Ahk2exe.exe /in "" /out "%appname%.exe" /NoDecompile
soundplay, done.mid, wait
;runwait, Ahk2exe.exe /in "" /out "%appname%.exe" /NoDecompile
soundplay, done.mid, wait
exitapp
return

Ahk2exe shows can't open the destination file or can't create a compiled archive, why?

_________________
Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2010, 10:58 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Have you tried to execute it manually.
Can you show what your fullpath /in and /out should be?

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2010, 11:13 am 
Offline

Joined: April 23rd, 2010, 12:43 pm
Posts: 32
If you are using AVG anti virus
you need to open avg, click :

Tools -> advanced settings -> directory excludes
and add the target dir of your ahk prog.

if that does not fix the prob try solution below :

If you are using win7 and maybe vista too you need to make
the working directory writable for all and/or right click
in the autohotkeySC.bin or exe file and change security settings to
allow to write.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, batto, Bing [Bot], dra, HotkeyStick, mKnight, sjc1000, Wicked, XstatyK and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group