AutoHotkey Community

It is currently May 27th, 2012, 6:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 414 posts ]  Go to page Previous  1 ... 23, 24, 25, 26, 27, 28  Next
Author Message
 Post subject:
PostPosted: May 25th, 2011, 1:13 pm 
Offline

Joined: October 27th, 2008, 12:25 pm
Posts: 24
Downloaded latest version of Compile_AHK but the problem remains although it might be a combination of two bugs.

When I set the locale to English_UnitedStates (which is locale 1033) the locale of the executable produced by Compile_AHK according to ResourceHacker still uses locale 2057. I notice the line Language_ID=39 in my script is removed - Is Compile_AHK removing it and then looking at my pc's locale? This is English_UnitedKingdom which would explain the erronic behaviour.

_________________
Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 25th, 2011, 1:34 pm 
Offline

Joined: October 27th, 2008, 12:25 pm
Posts: 24
Adding:
Code:
   VersionInfo = 1033

to line 2122 (just before -addoverwrite of the version info) does not change the versionInfo reported by ResourceHacker but makes the executables work correctly with FileGetVersionInfo_AW() [/code]

_________________
Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 25th, 2011, 4:45 pm 
Offline

Joined: July 14th, 2004, 6:21 am
Posts: 20
There is still an issue with Icon selection. In the Compile_AHK_0.9.0.58 version attempting to select an icon file which has a long path/filename caused the name to be truncated for me.

Before you released the 0.9.0.58 version I had added a modification to try and fix the icon issue using majkinetor's forms library.

http://www.autohotkey.com/forum/viewtopic.php?t=53317

I replaced the icon selection DLL calls with the Dlg_Icon() call from the library, and it appears to work well although I haven't done much testing with it.

I replaced the following code:
Code:
   else
   {
      ; VarSetCapacity(wSourceFile , 260 * 2)
      ; DllCall("MultiByteToWideChar" , "Uint" , 0 , "Uint" , 0 , "str" , SourceFile , "int" , -1 , "str" , wSourceFile , "int" , 260)
      If !(A_IsUnicode)
      {
          VarSetCapacity(wSourceFile , 260 * 2)
          DllCall("MultiByteToWideChar" , "Uint" , 0 , "Uint" , 0 , "str" , SourceFile , "int" , -1 , "str" , wSourceFile , "int" , 260)
      }
      Else
      {
          wSourceFile := SourceFile
      } 
   
      If !DllCall("shell32\PickIconDlg" , "Uint" , hWnd , "str" , wSourceFile , "Uint" , 260 , "intP" , nIndex)
         Return ; cancel was clicked or something else failed
   
      ; VarSetCapacity(SourceFile , 260)
      ; DllCall("WideCharToMultiByte" , "Uint" , 0 , "Uint" , 0 , "str" , wSourceFile , "int" , -1 , "str" , SourceFile , "int" , 260 , "Uint" , 0 , "Uint" , 0)
      If !(A_IsUnicode)
      {
          VarSetCapacity(SourceFile , 260)
          DllCall("WideCharToMultiByte" , "Uint" , 0 , "Uint" , 0 , "str" , wSourceFile , "int" , -1 , "str" , SourceFile , "int" , 260 , "Uint" , 0 , "Uint" , 0)
      }
      Else
      {
          SourceFile := wSourceFile
    } 
   
      StringReplace , SourceFile , SourceFile , `%SystemRoot`% , %A_WinDir%
   }


with:

Code:
   else
   {
      if !Dlg_Icon(SourceFile, idx, hGui)
         Return ; cancel was clicked or something else failed
      else
         nIndex := idx - 1

      StringReplace , SourceFile , SourceFile , `%SystemRoot`% , %A_WinDir%
   }


Along with adding the code for the Dlg_Icon function.

I'm not quite sure why I needed to adjust the icon index on a successful result though.

_________________
SJKeegs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2011, 11:28 am 
Offline

Joined: October 27th, 2008, 12:25 pm
Posts: 24
pacifika wrote:
Adding:
Code:
   VersionInfo = 1033

to line 2122 (just before -addoverwrite of the version info) does not change the versionInfo reported by ResourceHacker but makes the executables work correctly with FileGetVersionInfo_AW() [/code]

If I interpret SKAN correctly - correct me if I'm wrong, there maybe a bug in Compile_AHK 0.9.0.58 where StringFileInfo and VarFileInfo do not agree on Translation resulting in applications with incorrect VersionInfo.

_________________
Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2011, 5:01 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Hi. First off, I love this tool. It has helped me tremendously. However, I am experiencing an issue (not sure if it has been reported yet). Sometimes, when a compile finishes it will delete the .ahk script. This is very troublesome. At first, I thought it was just me, but just a few minutes ago I experienced it again and am 100% positive that I am not accidently doing it. Any thoughts?

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2011, 9:47 pm 
Offline

Joined: July 14th, 2004, 6:21 am
Posts: 20
Jeremiah wrote:
Sometimes, when a compile finishes it will delete the .ahk script.

Are you sure that you are using the latest version?

There was an issue that was fixed that would erase that .ahk code and replace it with INI data if you were compiling a script for the first time and asking AHK_II to save the INI data in the script.

That has been fixed in the latest version.

_________________
SJKeegs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2011, 3:18 am 
Offline

Joined: December 20th, 2010, 12:59 am
Posts: 239
Location: NORTHERN Ireland (but it's all the same to me)
is this fully compatible with AHK_L?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 18th, 2011, 8:28 am 
Yes!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2011, 8:35 am 
Can someone help me? When I try compiling I get this error:

Quote:
Set Version Error!
Couldn't set Version Info , ResHacker.exe failed!
[03 Aug 2011, 00:34:15]

[FileNames]
Exe=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
SaveAs=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
Log=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\ResHacker.log

[Commands]
-delete Versioninfo , 1 , 1033
Error: No matching resource found.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2011, 10:01 am 
Eccentrikit wrote:
Can someone help me? When I try compiling I get this error:

Quote:
Set Version Error!
Couldn't set Version Info , ResHacker.exe failed!
[03 Aug 2011, 00:34:15]

[FileNames]
Exe=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
SaveAs=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
Log=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\ResHacker.log

[Commands]
-delete Versioninfo , 1 , 1033
Error: No matching resource found.

It seems, that the file C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin doesn't exist.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2011, 12:05 pm 
ruespe wrote:
Here you are
Code:
/*
   FUNCTION: Ref()
      Shows or Plays Images, Icons or Sounds from a Resource File
   
   Ref(Type, Resource, ResourceID [, Param1, Param2, Param3, Param4, Param5])
....

Function Ref()


I get
Code:
---------------------------
ref().ahk
---------------------------
Error:  Target label does not exist.  The current thread will exit.

Specifically: gPlay

   Line#
   003: Ref("ICON", A_ScriptName, 200, 0, 100, 32, 32) 
   004: Gui,Show,Center,Ref-Testgui
   005: Return
   067: {
   071: hModule := DllCall("GetModuleHandle", Str, Resource)
   072: if (Type = "BITMAP") 
   072: {
--->   073: Gui,Add,Picture,x%P1% y%P2% w%P3% h%P4% g%P5% 0xE hWndPic1
   074: hBitmap := DllCall("LoadImageA", UInt, hModule, UInt, ResID, UInt, 0x0, UInt, P3, UInt, P4, UInt, 0x8000)
   076: SendMessage,0x172,0x0,hBitmap,,ahk_id %Pic1%
   077: Return,%Errorlevel%
   078: }
   078: Else
   078: if (Type = "ICON") 
   078: {


from running this. (AHKL 1.1.01.00)
Code:
      Gui, Margin, 0, 0
      Ref("BITMAP", A_ScriptName, 1, 0, 0, 500, 90, "Play")
      Ref("ICON", A_ScriptName, 200, 0, 100, 32, 32)
      Gui, Show, Center, Ref-Testgui


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2011, 12:08 pm 
Sorry, I forgot to add
Code:
      Play:
      Loop, 5 {
         Ref("WAVE", A_ScriptName, 666, 1)
         Sleep, 1000
      }
      Return
     
That was it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2011, 8:23 pm 
ruespe* wrote:
Eccentrikit wrote:
Can someone help me? When I try compiling I get this error:

Quote:
Set Version Error!
Couldn't set Version Info , ResHacker.exe failed!
[03 Aug 2011, 00:34:15]

[FileNames]
Exe=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
SaveAs=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin
Log=C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\ResHacker.log

[Commands]
-delete Versioninfo , 1 , 1033
Error: No matching resource found.

It seems, that the file C:\Users\ECCENT~1\AppData\Local\Temp\AutoHotkey\Compiler\AutoHotkeySC.bin doesn't exist.


How do I fix this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2011, 7:06 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
Try to put your AutoHotkeySC.bin into your AHK-Install-Dir under <AutoHotkey-InstallDir>\Compiler\

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2011, 10:20 pm 
Offline

Joined: May 29th, 2008, 5:02 pm
Posts: 21
Location: Madison, WI
EDIT: These changes have been included in Compile AHK v0.9.1.

Due to the lack of support for password protection in new versions of AutoHotkey_L (specifically v1.1.01.00 and above) could those features be depreciated from the GUI? An alternative would be to have the those be removed if AutoHotkey_L v1.1.01.00 and above is detected.

Also, the NoDecompile switch really hasn't been supported by AutoHotkey_L so it probably can be removed as well.


Last edited by darklight_tr on October 1st, 2011, 9:10 pm, edited 1 time in total.

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 ... 23, 24, 25, 26, 27, 28  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, jepjep24, Yahoo [Bot] and 16 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