| View previous topic :: View next topic |
| Author |
Message |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Mon Jan 15, 2007 9:38 am Post subject: FileGetLanguage |
|
|
Hi
is ist possible to implement a FileGetLanguage command?
Regards, Nils. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jan 15, 2007 10:42 am Post subject: |
|
|
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 |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Mon Jan 15, 2007 10:57 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jan 15, 2007 12:59 pm Post subject: |
|
|
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 |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Mon Jan 15, 2007 1:52 pm Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jan 15, 2007 1:54 pm Post subject: |
|
|
I already started to code it... _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|