Jump to content

Search the Community

Showing results for tags 'New functions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • General Discussion
    • Introduction
  • WinCert Member Projects
    • Win Toolkit
    • HeiDoc.net Projects
    • Windows Post-Install Wizard (WPI)
    • WPI, nLite and RVM Addons
    • DX WinNT6.x True Integrator
    • Switchless installers
    • XP Theme Source Patcher
    • OS Transformation Packs
    • Installer Repacks
  • WinCert.net International
    • WinCert.net Turkish
    • WinCert.net Italian
    • WinCert.net French
    • WinCert.net Spanish
    • WinCert.net Dutch
    • WinCert.net German
  • Microsoft Operating Systems and Software
    • Microsoft Windows
    • Microsoft Windows Server Family
    • Microsoft Office
    • Tips and Tricks
  • News, Support, Discussion
    • Software Field
    • Hardware Field
    • Networks and Security Field
    • Games Hangout
    • Scripting and Programming
    • Drivers Field
  • The Design Art Forum
    • Graphics Showcase
    • Windows Customization
    • Web Design/Hosting/Administering
  • Miscellaneous
    • Site and Forum Issues

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I suggest to add a new function inside WPI. Inside wmi.js (from line 348): function getKeyboardLayout(){ position="wmi.js"; whatfunc="getKeyboardLayout()"; try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); KeyboardLayout=objItem.Locale; } catch(ex) { } return KeyboardLayout;} Inside core.js (replace): // %OSLANG% var LCID; CreateLocalArray(); try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); LCID=objItem.Locale; for (var x=0; x<arrOSLang.length; x++) { if (arrOSLang[x].LCID==LCID) { oslang=arrOSLang[x].TLA; oslocale=arrOSLang[x].Locale; break; } } } catch(ex) { oslang="ENU"; oslocale="English - United States"; } // Environment variable for batch file setEnvVar("HDD",hdd,false); setEnvVar("CDDRV",cddrv,false); setEnvVar("WPIPATH",wpipath,false); setEnvVar("ROOT",root,false); setEnvVar("OSLANG",oslang,false); setEnvVar("OSLOCALE",oslocale,false);} And remove inside core.js: function DecToHex(d){ position="core.js"; whatfunc="DecToHex()"; var hD="0123456789abcdef"; var h=hD.substr(d&15,1); while(d>15) { d>>=4; h=hD.substr(d&15,1)+h; } return h;} Inside global.js // wmi.js var KeyboardLayout; Inside global_lang.js var lblKeyboardLayout=[]; Inside information.js (on line 119): MyComputerGrid.addRow(gId++,getText(lblKeyboardLayout)+','+getKeyboardLayout()+''); Inside lang_en.js lblKeyboardLayout[lang] = ['Keyboard Layout']; Tested and works fine for me! Image: https://skydrive.live.com/?lc=4108#cid=D178EA021B182B88&id=D178EA021B182B88%211515 Thanks to check if it's OK! Regards
×
×
  • Create New...