AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FileGetLanguage

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Mon Jan 15, 2007 9:38 am    Post subject: FileGetLanguage Reply with quote

Hi

is ist possible to implement a FileGetLanguage command?

Regards, Nils.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 15, 2007 10:42 am    Post subject: Reply with quote

It would be useful to describe what it is supposed to do...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Mon Jan 15, 2007 10:57 am    Post subject: Reply with quote

Hi,

PhiLho wrote:
It would be useful to describe what it is supposed to do...

Ok, sorry, just like FileGetVersion there is a possibility to get the language of a DLL or EXE with the windows api. And it would be nice to have a function which can read this information out of a file, saying 0x0409 for english-us or 0x0407 for german.

AHK allready knows the language code of the running system. So it would be nice to get the langua of a file.

Regards, Nils.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 15, 2007 12:59 pm    Post subject: Reply with quote

A file (exe, dll, ...) can have more than one language... And the info there is the language used for info resources, not necessarily the language of other strings in there.
Although it could be nice to have easy access to all info strings (Comments InternalName ProductName CompanyName LegalCopyright ProductVersion
FileDescription LegalTrademarks PrivateBuild FileVersion OriginalFilename SpecialBuild, to name only the official ones), I am not sure the frequency of use is worth making a special command for it. Access to this info can be done with DllCalls.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Mon Jan 15, 2007 1:52 pm    Post subject: Reply with quote

Hi PhiLho,

using a DLL call would also be ok, but I haven't used it yet. Do you have an sample script for using the version.dll and get the informations about file languages?

Regards, Nils.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jan 15, 2007 1:54 pm    Post subject: Reply with quote

I already started to code it...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group