AutoHotkey Community

It is currently May 27th, 2012, 10:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 28  Next
Author Message
 Post subject: Re: OUT_FILE problem
PostPosted: April 10th, 2008, 2:19 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
Trubbleguy wrote:
OUT_FILE= in the ini file is being a pain for me, i write a main exe for one company, and then copy it to another folder with the ini file, where the same exe compiles with different plugins, which is for a different company...

you copy an executable to another folder and compile it? :roll:

or you copy the ahk-file + ini-file to another folder? did you realize, that i did a change that goes with your needs:

1.)
your script is f.e.:
D:\AHK\MyProgramFolder\MyScript.ahk
and your outgoing file is:
D:\AHK\MyProgramFolder\MyProgram.exe

2.)
compile it once again and in the ini-file you found a new outgoing path:
OUT_FILE=%IN_DIR%\MyProgram.exe

2.)
this means, if you copy the folder to X:\OTHER_AHK_THINGS the script will be:
X:\OTHER_AHK_THINGS\MyProgramFolder\MyScript.ahk
and the outgoing file now will be:
X:\OTHER_AHK_THINGS\MyProgramFolder\MyProgram.exe

isnt it what you want?

Trubbleguy wrote:
I need NO path set for OUT_FILE as they are always in %A_WorkingDir%, can you remove the path and just leave the filename please, if i dont manually change the ini file for that ahk it fails on compile or overwrites the main exe i created in the original folder (where original ini pointed).because sometimes i do this for 5 or 6 different compiles of the original ahk, i dont want to have to setup the ini file for each company every time i copy the ahk and its compile ini file.


your program is in %A_WorkingDir% ? so your program is in the same folder as the compile_ahk.exe?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2008, 3:43 pm 
Offline

Joined: March 15th, 2006, 2:22 pm
Posts: 6
Razlin wrote:
I just noticed an error in your
Compile_AHK_Setup.ahk

I dont know if this can cause errors in the compile_ahk.ahk but when it asks you where to save the compiler in
c:\ decs settings \all user\ ... ... there is a [...] button to select folder.

just a note that this button doesnt actually change the path

I dont have "rights" at work to save stuff in all users and the [...] doesnt work.. Ill see if I can change it hopefully it wont affect other parts of the script.


Argh!

Please Replase the Line Nr. 145 with thies:
Code:
Gui, Add, Text, xp+10 yp+25 h20 v_INSTALL_DIR_, %s_INSTALL_DIR_ANZEIGE%


And the Line Nr. 154 with this:
Code:
   Gui, Add, Text, xp+10 yp+25 h20 v_INSTALL_DIR_, %s_INSTALL_DIR_ANZEIGE%


And at last the Line Nr. 198 - 200 with this:
Code:
s_INSTALL_DIR := s_INSTALL_DIR_ANZEIGE_NEW
      StringSplit, s_INSTALL_DIR_, s_INSTALL_DIR_ANZEIGE_NEW, \
      s_INSTALL_DIR_ANZEIGE = %s_INSTALL_DIR_1%\%s_INSTALL_DIR_2%...`n%A_Tab%%A_Tab%\%s_INSTALL_DIR_3%\%s_INSTALL_DIR_4%...`n%A_Tab%%A_Tab%%A_Tab%%A_Tab%\AutoHotKey\Compiler


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2008, 1:06 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
the problem lies in the out_path saved in the ini
because the ini lies in the same folder with the ahk file i want to compile, it does not need a path, just the filename (does it need even the filename in there)

if the path is incorrect (i moved the ahk and ini) i get
Error: Error opening the destination file. if the path was missing it would default to local folder.

if i remove the path from the ini i get
Compilation error

see if you can remove the path but leave just the exe name and get it to compile, you should be able to get the current path using splitpath on %1% and adding the correct path later in your code and not save the path in the ini at all.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2008, 5:54 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
@Trubbleguy:

maybe my english isnt the best, but did you read my last post?

ladiko wrote:
...
2.)
compile it once again and in the ini-file you find a new outgoing path:
OUT_FILE=%IN_DIR%\MyProgram.exe
...

isnt it what you wanted?

so once again:
if the outfile is saved in the same folder as the ahk file, compile ahk uses OUT_FILE=%IN_DIR%\Compile_AHK.exe instead of a hard path, since the last version!
%IN_DIR% means the path of the ahk-file. so if you move the ini and the ahk file, compile_ahk still uses the folder of this copied ahk file as output path. on next comping your old ini file is changed according to the descripted manner.

Update from 2008-04-12
    + New: A small log file and other debugging files are written to %A_Temp%\AutoHotkey\Compiler
    + New: New main icon by Titan / www.autohotkey.net -> Thank you Titan for the permission :-)
    + Changed: WorkingDir now is %A_Temp%\AutoHotkey\Compiler instead of %A_ScriptDir%
    + Changed: Defaults.ini is now saved in %A_AppData%\AutoHotkey\Compiler
    + Changed: AlwaysOnTop icons are now included in the Compile_AHK.exe
    + Changed: Updated Credits GUI with clickable URLs
    + Changed: Smaller Installer GUI --> needs further enhancement
    + Chaged: default installation folder is now afresh %A_ProgramFiles%\Autohotkey\Compiler
    + Fixed: Compile_AHK can be installed to wherever you want
    + Fixed: Compile_AHK now works 100% with enabled Data Execution Prevention (DEP) -> Thank you Lexikos


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2008, 1:10 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
Getting latest version to test 04/12/08
does the installer test registry for location of last installed version so that it can overwrite old one?
Thanks.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2008, 12:00 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
Update from 2008-04-13
    + Changed: Setup reads install directory from registry
    Code:
    first: HKCR\AutoHotkeyScript\Shell\Compile_AHK\Command
    second: HKCR\AutoHotkeyScript\Shell\Compile\Command
    third: %ProgramFiles%\AutoHotkey\Compiler

    + Changed: Reset button to set install directory to the recommended path
    + Changed: small changed in the setup gui
    + Fixed: Error while extracting an icon from a resource file cause of a missing path to the ResHacker


Last edited by ladiko on April 13th, 2008, 11:21 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2008, 9:34 pm 
Offline

Joined: March 3rd, 2008, 11:09 pm
Posts: 34
I get the following error message when I try to compile:
Quote:
Error while deleting old log file!
Couldn't delete "Compile_AHK.log"


It used to work fine before the last 2 updates....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2008, 11:19 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
thank you for the bug report, please see below :-)

Update from 2008-04-14
    + New: Button to generate a password
    + New: If present, the folder Lib + AutoHotkey.exe will be copied too (function untested)
    + Fixed: Error message if the log file Compile_AHK.log is not available for deletion ;-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2008, 11:29 pm 
Offline

Joined: March 3rd, 2008, 11:09 pm
Posts: 34
Thanks! It works beautifully now :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2008, 1:55 am 
Offline

Joined: November 21st, 2006, 9:00 pm
Posts: 210
I'm still having trouble with this.

When I try to double click the file - Compile_AHK.exe in the compiler folder, I keep getting a popup that shows:

Command Line Parameter Error!
Wrong Number of Parameters: 0

Any idea how to solve this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2008, 4:56 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
Quote:
When I try to double click the file - Compile_AHK.exe in the compiler folder, I keep getting a popup that shows:

Command Line Parameter Error!
Wrong Number of Parameters: 0

the ahk is not designed to be run directly
right click on the ahk u want to compile and select COMPILE WITH OPTIONS

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2008, 7:10 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
like Trubbleguy told you:
Image

Update from 2008-04-14 v2
    + New: If Compile_AHK is called without parameters, you can choose a ahk file to open
    + New: Setup can create shortcut files on desktop and in the start menu

edit:

Question in the german thread http://de.autohotkey.com/forum/viewtopi ... 2983#22983 -->
Twhyman wrote:
Hi,
I just tried the compiler, i nstalled it on vista using the exe setup.
It comiles great including custom icon.

The only thing not working is the version number and file details on the "version info" tab.

how can i fix that?

Thanks
Twhyman

please send me a personal message with the content of these files:
C:\Users\<username>\AppData\Local\Temp\Autohotkey\Compiler\
Compile_AHK.txt
VersionInfo.rc (open it with notepad)

you can open the folder if you open vista's start menu and input the following line into the input box at the end of the start menu:
%temp%\Autohotkey\Compiler

edit2:
is it possible, that the file version and product version are always the same as your autohotkey version? 1.0.47.6 if you've the newest version of autohotkey!?! and all other fields are empty except the language which is english (usa) ?

if that's the problem you dont have to send me the files cause i've hot the same problem on a xp-pc here =/
have to take a look on what went wrong when i'm back at home.

edit3:
fixed -->

Update from 2008-04-16
    + Fixed: cause of a wrong set comma, the versioninfo wasnt written.
    + Fixed: error detection for Reshacker was without result in most cases
edit4:
Update from 2008-04-16 v2
    + New: Hint on words in the executable's file name, which cause Vista to force the need of admin rights


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 9:39 pm 
Offline

Joined: November 21st, 2006, 9:00 pm
Posts: 210
Trubbleguy wrote:
Quote:
When I try to double click the file - Compile_AHK.exe in the compiler folder, I keep getting a popup that shows:

Command Line Parameter Error!
Wrong Number of Parameters: 0

the ahk is not designed to be run directly
right click on the ahk u want to compile and select COMPILE WITH OPTIONS


Thank you!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 11:19 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
since the last versions, you can run compile_ahk by double clicking. see my entry above your last one.

Update from 2008-04-17
    + Changed: All three Vista execution levels selectable


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 11:26 pm 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
Just thought id try this and got the following error.

Code:
---------------------------
Compile_AHK.exe
---------------------------
Error at line 1677.

Line Text: Local , elevated
Error: This line does not contain a recognized action.

The program will exit.
---------------------------
OK   
---------------------------

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 28  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: XX0 and 21 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