AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16 ... 28  Next
Author Message
 Post subject: Version info
PostPosted: February 13th, 2009, 1:58 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 2:11 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
i cant reproduce this behaviour. i need more informations. f.e. which settings do you use (program.ahk.ini) ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Version info
PostPosted: February 13th, 2009, 2:48 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 3:03 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
you changed the charset and language id. with the defaults (english us, unicode) everything is ok.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Version info
PostPosted: February 13th, 2009, 3:39 pm 
Yes it is OK with defaults. Thank you very much.


Report this post
Top
  
Reply with quote  
 Post subject: AutoHotkey v1.0.48
PostPosted: February 27th, 2009, 12:25 am 
Offline

Joined: March 25th, 2008, 8:46 pm
Posts: 38
Compile_AHK works full with the new Autohotkey version?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2009, 10:36 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: please help
PostPosted: March 2nd, 2009, 6:07 am 
Offline

Joined: February 11th, 2009, 2:23 pm
Posts: 142
Location: India
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 9:50 am 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 3:44 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
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:
Image

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 4:25 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 4:43 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
You know I'm on Win98SE... *sigh*
Nevermind, I'll take care of the issues myself when I can.

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 5:00 pm 
Offline

Joined: July 14th, 2006, 12:31 am
Posts: 290
Location: Berlin
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 5:43 pm 
Offline

Joined: February 11th, 2009, 2:23 pm
Posts: 142
Location: India
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 6:16 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
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. ;)

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


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 ... 10, 11, 12, 13, 14, 15, 16 ... 28  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], infogulch and 13 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