AutoHotkey Community

It is currently May 26th, 2012, 8:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17, 18, 19 ... 28  Next
Author Message
 Post subject:
PostPosted: July 21st, 2009, 5:27 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
i will think about it, but not before the weekend. something like

ifexist ini file -> use ini file
else ifexist comment -> use comment
else create ini file / comment

could take a while.

i would add something like
Code:
/* Compile_AHK Settings Section
...
Same parameters as in the ini-files
...
*/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 7:30 am 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
Verd... Gleicher Gedanke.

Before I saw the new page my idea was exactly the same
Code:
/*
***COMPILE_AHK II-SETTINGS***
[AHK2EXE]
OUT_FILE=E:\AHK\WinTest.exe
UPX_LEVEL=4
OUT_PASS=
SHOW_PASS=0
OUT_DCMP=0
RUN_BEFORE=
RUN_AFTER=
ADMIN=0
[VERSION]
VERSION_INFO=0
[ICONS]
ICON_1_SET=1
ICON_1=d:\Tools\AutoHotKey\abc.ico
ICON_2_SET=0
ICON_3_SET=0
ICON_4_SET=0
ICON_5_SET=0
ICON_6_SET=0
ICON_7_SET=0
*/
#SingleInstance force
SetTitleMatchMode, 2
SetTitleMatchMode, slow


I also would change the order of looking for ini-file:
Code:
ifexist comment -> use comment
else ifexist ini file -> use ini file
else create ini file / comment

You than can use the scriptfile as ini-file. All IniXxx-commands are working on it.

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 9:25 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
at first i have to try what happens if i use an existing file without ini-part as source for IniWrite (WriteIni?) ... cause i dont think it's smart enough to add a comment part around this section itself.

pls wait for the weekend.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 11:01 am 
Offline

Joined: January 20th, 2009, 3:29 am
Posts: 13
would it be simply create another custom-made script to read the comment and create the ini, and call "Compile with Options (Auto)"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 11:08 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
why create an ini-file if all informations already are inside the script? i would prefer a "autodetection" if there is a ini section inside the script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 8:32 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
This is in german or something. I can't read this.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 10:06 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
select another language (english) in the upper right dropdownbox.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2009, 8:11 pm 
I only see German text. I downloaded from link on 1st page. Is there a language file I can get somewhere?
Also, shell extension seems to give same error as original compiler: "Error opening the destination file". THis doesnt happen if i manually start the app.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2009, 8:16 pm 
^^^
DOH!
Didnt read last 2 posts!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2009, 9:44 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
same error message cause compile_ahk doesn't compile, but uses original compiler and did some things before the compiling starts. error opening destination file normally means that the exe file is started and cant be replaced.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: No_upx
PostPosted: September 14th, 2009, 3:31 pm 
What does No_upx do exactly?


Report this post
Top
  
Reply with quote  
 Post subject: Re: No_upx
PostPosted: September 14th, 2009, 3:42 pm 
Anonymous wrote:
What does No_upx do exactly?

Nevermind. It makes the file huge... Probarly to not compress...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2009, 5:39 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
autohotkey comes with the upx.exe which compresses the resulting executable file. if you active the option, the resulting file is not compressed. in normal casses the resulting file's size will be 400kb + X without compression and 200kb + X with compression.

http://en.wikipedia.org/wiki/UPX

Update of 2009-09-16
    + New: Possibility to save settings in the script instead of a separate ini file
    + Changed: Order of of files to read settings from: Skript.ahk, Skript.ahk.ini, Defaults.ini


Image Image Image Image Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2009, 7:10 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
i found one "bug":

the line named in runtime errors is counted without block comments. normal comments - introduced with a semicolon - are counted. cause the Compile_AHK settings are enclosed in a block comment, you have to calculate the correct line yourself...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2009, 5:23 am 
Offline

Joined: January 20th, 2009, 3:29 am
Posts: 13
another problem when saving setting in script

The setting added is in Unix format (`n) only.
If the script is edited under Windows, line feed would be (`r`n). The problem occurs, the old setting could not be matched and multiple setting sections are saved in script :shock:


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 ... 13, 14, 15, 16, 17, 18, 19 ... 28  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], notsoobvious, Yahoo [Bot] and 20 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