 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
JHa Guest
|
Posted: Fri Feb 13, 2009 1:58 pm Post subject: Version info |
|
|
Hello ladiko,
I added version info and compiled my program with your Compile_AHK. All informations are correctly displayed in file properties. But I am wondering why this info is not displayed in Process Explorer (Sysinternals) like other programs. Any idea?
Thank you for your effort. |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Fri Feb 13, 2009 2:11 pm Post subject: |
|
|
| i cant reproduce this behaviour. i need more informations. f.e. which settings do you use (program.ahk.ini) ? |
|
| Back to top |
|
 |
JHa Guest
|
Posted: Fri Feb 13, 2009 2:48 pm Post subject: Version info |
|
|
contents of ahk.ini file:
[AHK2EXE]
Exe_File=%In_Dir%\PCLog.exe
Alt_Bin=
Compression=2
No_UPX=0
Password=
Show_Pwd=0
NoDecompile=0
Created_Date=0
Run_Before=""
Run_After=""
Execution_Level=1
[VERSION]
Set_Version_Info=1
Resource_Files=
Company_Name=JHa
File_Description=PCLog
File_Version=1.0.0.0
Inc_File_Version=0
Internal_Name=PCLog.ahk
Legal_Copyright=JHa
Original_Filename=PCLog.ahk
Product_Name=
Product_Version=1.0.47.5
Set_AHK_Version=1
Inc_Product_Version=0
Language_ID=39
Charset=8
[ICONS]
Icon_1=%In_Dir%\PCLog.ico |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Fri Feb 13, 2009 3:03 pm Post subject: |
|
|
| you changed the charset and language id. with the defaults (english us, unicode) everything is ok. |
|
| Back to top |
|
 |
JHa Guest
|
Posted: Fri Feb 13, 2009 3:39 pm Post subject: Version info |
|
|
| Yes it is OK with defaults. Thank you very much. |
|
| Back to top |
|
 |
mitre
Joined: 25 Mar 2008 Posts: 35
|
Posted: Fri Feb 27, 2009 12:25 am Post subject: AutoHotkey v1.0.48 |
|
|
| Compile_AHK works full with the new Autohotkey version? |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Fri Feb 27, 2009 10:36 am Post subject: |
|
|
seems to work without problems.
compile_ahk itself is compiled with 1.0.47 and so it would only cause problems if the command line parameters of ahk2exe.exe have been changed. internal changes inside the AutoHotkeySC.bin / AutoHotkey.exe doesn't effect compile_ahk. |
|
| Back to top |
|
 |
Montu
Joined: 11 Feb 2009 Posts: 140 Location: India
|
Posted: Mon Mar 02, 2009 6:07 am Post subject: please help |
|
|
| ladiko wrote: | seems to work without problems.
compile_ahk itself is compiled with 1.0.47 and so it would only cause problems if the command line parameters of ahk2exe.exe have been changed. internal changes inside the AutoHotkeySC.bin / AutoHotkey.exe doesn't effect compile_ahk. |
I tried it with both v.1.0.47 and v.1.0.48
but whenever I try to add an image in bmp / jpeg as resource and compile
I'm getting this error saying
| Code: |
"import resource error"
couldn't delete C:Docume~1\montu\locals~1\temp\autohotkey\compiler\addresource.script
|
please help. thanks in advance.
If I don't add image as resource then it works fine and smooth. |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Mon Mar 02, 2009 9:50 am Post subject: |
|
|
from now on compile_ahk is compiled with ahk version 1.0.48.0
Update of 2009-03-02+ Fixed: useless error message if addresource.script should be deleted, but doesn't exist |
|
| Back to top |
|
 |
Drugwash
Joined: 08 Sep 2008 Posts: 608 Location: Ploiesti, RO
|
Posted: Mon Mar 02, 2009 3:44 pm Post subject: |
|
|
Tried the ahk script, redownloaded from first post's link (hopefully it's updated): | Error message box wrote: | Set Version Error!
Couldn't set Version Info, GoRC.exe failed! | This happens because of the old issue with too long paths, I believe.
As I said before, my solution was to copy GoRC.exe and ResHacker.exe to %temp%\AutoHotkey\Compiler and use that shorter path (since A_WorkingDir is already set to the above) throughout the script.
Can't wrap my head around the code now due to a nasty cold but I'll try to fiddle with it in a few days when I get my reasoning back. I do have another small issue though, that's easy to fix - the AlwaysOnTop icon is not displayed when running the ahk script. For that, I've extracted the 2 icons and put them in the script folder, named as AOT_on.ico and AOT_off.ico and modified the script accordingly:
| Code: | if A_IsCompiled
{
Gui , Add , Picture , xm+294 ym+4 h16 w16 hidden vGui_ON_TOP_ON gGui_ON_TOP_OFF AltSubmit Icon6 , %A_ScriptName%
Gui , Add , Picture , xm+294 ym+4 h16 w16 vGui_ON_TOP_OFF gGui_ON_TOP_ON AltSubmit Icon7 , %A_ScriptName%
}
else
{
Gui , Add , Picture , xm+294 ym+4 h16 w16 hidden vGui_ON_TOP_ON gGui_ON_TOP_OFF , %A_ScriptDir%\AOT_off.ico
Gui , Add , Picture , xm+294 ym+4 h16 w16 vGui_ON_TOP_OFF gGui_ON_TOP_ON , %A_ScriptDir%\AOT_on.ico
} |
[EDIT]
Old bug in the installer (forgot about it until now) - on first window, the slightest move of the mouse cursor will lead to only displaying the currently hovered link or radio control:
 |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Mon Mar 02, 2009 4:25 pm Post subject: |
|
|
| Drugwash wrote: | | Error message box wrote: | Set Version Error!
Couldn't set Version Info, GoRC.exe failed! | This happens because of the old issue with too long paths, I believe. |
on xp? i compiled a script in
C:\Dokumente und Einstellungen\ladiko\Desktop\ChangeTBServer with changed version info and doesn't get an error. My %temp% is
C:\Dokumente und Einstellungen\ladiko\Lokale Einstellungen\Temp so i also have long pathes?! the compile_ahk.log told me that gorc is called with 8.3 pathes:
"C:\Programme\AutoHotkey\Compiler\GoRC.exe" /r "C:\DOKUME~1\ladiko\LOKALE~1\Temp\AutoHotkey\Compiler\VersionInfo.rc" >> "C:\DOKUME~1\ladiko\LOKALE~1\Temp\AutoHotkey\Compiler\GoRC.log"
this path has 183 characters.
| Drugwash wrote: | Can't wrap my head around the code now due to a nasty cold but I'll try to fiddle with it in a few days when I get my reasoning back. I do have another small issue though, that's easy to fix - the AlwaysOnTop icon is not displayed when running the ahk script. For that, I've extracted the 2 icons and put them in the script folder, named as AOT_on.ico and AOT_off.ico and modified the script accordingly:
| Code: | if A_IsCompiled
{
Gui , Add , Picture , xm+294 ym+4 h16 w16 hidden vGui_ON_TOP_ON gGui_ON_TOP_OFF AltSubmit Icon6 , %A_ScriptName%
Gui , Add , Picture , xm+294 ym+4 h16 w16 vGui_ON_TOP_OFF gGui_ON_TOP_ON AltSubmit Icon7 , %A_ScriptName%
}
else
{
Gui , Add , Picture , xm+294 ym+4 h16 w16 hidden vGui_ON_TOP_ON gGui_ON_TOP_OFF , %A_ScriptDir%\AOT_off.ico
Gui , Add , Picture , xm+294 ym+4 h16 w16 vGui_ON_TOP_OFF gGui_ON_TOP_ON , %A_ScriptDir%\AOT_on.ico
} |
| yes, the icons are included to compile_ahk.exe - it's not a bug, it's a feature...
| Drugwash wrote: | [EDIT]
Old bug in the installer (forgot about it until now) - on first window, the slightest move of the mouse cursor will lead to only displaying the currently hovered link or radio control... | can't confirm this on xp sp3 and vista sp1 oO |
|
| Back to top |
|
 |
Drugwash
Joined: 08 Sep 2008 Posts: 608 Location: Ploiesti, RO
|
Posted: Mon Mar 02, 2009 4:43 pm Post subject: |
|
|
You know I'm on Win98SE... *sigh*
Nevermind, I'll take care of the issues myself when I can. |
|
| Back to top |
|
 |
ladiko
Joined: 14 Jul 2006 Posts: 281 Location: Berlin
|
Posted: Mon Mar 02, 2009 5:00 pm Post subject: |
|
|
| the window on the screenshot is themed!? windowblinds on win9x? hmm i have to see if i install win9x on a VM in the next days to test. |
|
| Back to top |
|
 |
Montu
Joined: 11 Feb 2009 Posts: 140 Location: India
|
Posted: Mon Mar 02, 2009 5:43 pm Post subject: |
|
|
| ladiko wrote: | from now on compile_ahk is compiled with ahk version 1.0.48.0
Update of 2009-03-02+ Fixed: useless error message if addresource.script should be deleted, but doesn't exist |
thanks a lot for it, my problem is solved, now I can add the images as resources in the exe but its not showing the image after I do it I mean
take an example
| Code: | Gui, Add, Picture, x-4 y-13 w480 h400 , D:\My scripts\compiling\image.jpg
Gui, Add, Button, x16 y7 w100 h30 , Hi
; Generated using SmartGUI Creator 4.0
Gui, Show, x435 y226 h377 w477, New GUI Window
Return
GuiClose:
ExitApp |
I can successfully compile the EXE with the image as resource but after that, when I rename the image.jpeg file- the exe stops showing the photo.
or is that normal? I thought this thing adds the image file within the exe? |
|
| Back to top |
|
 |
Drugwash
Joined: 08 Sep 2008 Posts: 608 Location: Ploiesti, RO
|
Posted: Mon Mar 02, 2009 6:16 pm Post subject: |
|
|
| Montu wrote: | | I thought this thing adds the image file within the exe? | Well, I guess it does but it doesn't also modify your script to link to it, so you'd have to do that manually in the script, before compiling. Might be a bit tricky since you need the resource number or something (haven't played with this option). | ladiko wrote: | | the window on the screenshot is themed!? windowblinds on win9x? | Yes, the OS is themed but not with WB - it's Tihiy's UberSkin, from the MSFN.org boards. And the theme is a variation done by myself of the included Royale theme.  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|