Jump to content

WPI 8.6 and beyond bug\bugfix thread


Recommended Posts

Inside tips.js about: function qdh(t,d,s)

On line 49:


function qdh(t,d,s)
{
position="main.js";
whatfunc="qdh()";

We can change (position) to :


function qdh(t,d,s)
{
position="tips.js";
whatfunc="qdh()";

Inside optionswizardtemplate_window.htm (values also inside api.js):

Errors on lines 199 and 200:


<option value="12802">1280x768</option>
<option value="12803">1280x800</option>

Change to:


<option value="12803">1280x768</option>
<option value="12804">1280x800</option>

Inside WPI.hta

I think we can remove the line 9, because this file doesn't exist.

<script type="text/javascript" src="../WPIScripts/userfunctions.js" application="yes"></script>

Inside themewizard.js

On line 681. We can change: SkinPreset to Theme


function UserThemeDefaults()
{
position="themewizard.js";
whatfunc="UserThemeDefaults()";
SkinPreset='Classic';

Change to:


To:
function UserThemeDefaults()
{
position="themewizard.js";
whatfunc="UserThemeDefaults()";
Theme='Win7';

Tested and works fine for me.

Thanks and regards

Edited by myselfidem
Link to comment
Share on other sites


I suggest to restore the option AppearanceBehavior Float for Tooltips:

1 - Inside themewizard.js (on line 271):

Change:


with (getElementById("AppearanceBehavior"))
{
options[0].text=getText(optNormal);
options[1].text=getText(optStatic);
options[2].text=getText(optVisible);
options[3].text=getText(optSticky);
options[4].text=getText(optKeep);
}

To:


with (getElementById("AppearanceBehavior"))
{
options[0].text=getText(optNormal);
options[1].text=getText(optStatic);
options[2].text=getText(optVisible);
options[3].text=getText(optSticky);
options[4].text=getText(optFloat);
}

Only optKeep is replaced with optFloat !

2 - Inside lang_en.js:

Remove the line 719: optKeep[lang] = ['Keep'];

Add the line 713: optFloat[lang] = ['Float'];

3 - Inside globals_lang.js:

Remove optKeep=[],

* optFloat=[], is already inside globals_lang.js!

Tested and works fine for me.

Thanks to check if it's OK.

Here is the new lang_fr.js

Thanks and regards

Floating window Image

*Edit: post updated

Edited by myselfidem
Link to comment
Share on other sites

Inside configwizard.js

We can add from line 186, to activate the Alert window if we use Exit without saving the selected options:

1 - function CreateNavigation()


NavGrid.attachEvent("onDrop",ConfigUpdated);
NavGrid.attachEvent("onAfterSorting",ConfigUpdated);

2 - function CreateConfigurations()

Change:

ConfigurationsGrid.enableDragAndDrop(true); 

To:

ConfigurationsGrid.enableDragAndDrop(false); 

3 - function CreateSortOrder()

We can add:

SortOrderGrid.attachEvent("onSelectionChange",ConfigUpdated);

To activate the Alert window when we use the Exit button without saving the changes.

Thanks and regards

Edited by myselfidem
Link to comment
Share on other sites

Inside themewizardtemplate_tooltips.htm

We can add HandleShowToolTipsSelection()

On lines 42 and 58:

onChange="HandleShowToolTipsSelection(); ThemeUpdated();"

To have the Alert window.

Thanks and regards

Link to comment
Share on other sites

Changelog so far.


**** Added {CMD} to the list of functions.
**** Add Win2k to the conditions.
**** Fixed a executebefore64bit error.
**** User file written version updated slightly.
**** Fixed a autologoncount error.
**** Fixed a alert sound location error.
**** More info added to the installer log.
**** Removed more old leftover code.
**** Added setfilesystem to the conditions.
**** More fontinstaller improvements.
**** Tons of textual errors fixed.
**** Added {MSI} to the commands for standard msi files.
**** Added alerts to themewizard when exiting.
**** Fixed a couple of resolution errors.
**** Restored "Float" for the tooltips.
**** Tons of minor features improved.

Link to comment
Share on other sites

Changelog so far.


**** Added {CMD} to the list of functions.
**** Add Win2k to the conditions.
**** Fixed a executebefore64bit error.
**** User file written version updated slightly.
**** Fixed a autologoncount error.
**** Fixed a alert sound location error.
**** More info added to the installer log.
**** Removed more old leftover code.
**** Added setfilesystem to the conditions.
**** More fontinstaller improvements.
**** Tons of textual errors fixed.
**** Added {MSI} to the commands for standard msi files.
**** Added alerts to themewizard when exiting.
**** Fixed a couple of resolution errors.
**** Restored "Float" for the tooltips.
**** Tons of minor features improved.

Thank you both

Link to comment
Share on other sites

Myselfidem: Search through the ChangeLog.txt as to why I left the userfunctions.js include in there. I don't know if anyone has ever used it, but, just in case.

I would have hoped if someone wrote some new/updated code they would share it with us. Or it could be specific to their custom situation/job/computer system.

I want to thank you for all of the bug fixes and ideas you have posted. It's good to see WPI is still in demand and supported by some good people. Keep up the good work!

Link to comment
Share on other sites

Thank you very much mritter for your kind message.

It is a pleasure to read you.

Now I understand why there is this line inside WPI.hta. I was looking to add variables inside a javascript file .. But it's a hard job to do. This file name can be used for.

I appreciate the WPI program and I use it since version 4. Thank you very much for all the daunting task you provided Kelsenellenelvian and you, mritter, and Francesco and all past developers.

WPI is a powerful and very nice program.

I am not a coder but I do my best to learn and try to give some help.

Thank you very much for the encouragement.

Edited by myselfidem
Link to comment
Share on other sites

Inside program.js

On line 54 there is an unwanted space at last.

Change:

this.dflt=(dflt[idx]==null) ? ['no'] : [dflt[idx][0]] ;

To:

this.dflt=(dflt[idx]==null) ? ['no'] : [dflt[idx][0]];

On line 199: It seems it's needed to change the value 1 to the letter l:

Change:

textl[i+1]=programs[i].text1;

To:

textl[i+1]=programs[i].textl;

Thanks to check if it's OK.

Regards

Edited by myselfidem
Link to comment
Share on other sites

Inside configwizard.js

On line 2481:

Change:

document.getElementById("cbocats").selectedIndex=document.getElementById("cbocats").length - 1;

To:

document.getElementById("cbocats").selectedIndex=document.getElementById("cbocats").length-1;

Thanks to check if it's OK. Or maybe gives the same result?

Thanks and regards

*Edit: optFloat=[], is already inside globals_lang.js. It wasn't removed previously.

Edited by myselfidem
Link to comment
Share on other sites

Tip to solve the problem about order and numbers matching; inside themewizard.js and themewizardtemplate_tooltips.htm

I use this workaround:

Inside themewizard.js

Change:


with (getElementById("TipPositionType"))
{
options[0].text=getText(optLeft);
options[1].text=getText(optCenter);
options[2].text=getText(optRight);
options[3].text=getText(optFixed);
}

To:


with (getElementById("TipPositionType"))
{
options[0].text=getText(optRight);
options[1].text=getText(optLeft);
options[2].text=getText(optCenter);
options[3].text=getText(optFixed);
}

Inside themewizardtemplate_tooltips.htm

Change:


<td>
<select id="TipPositionType" class="opTextBox" size="1"
onChange="ThemeUpdated();"
>
<option value=1></option>
<option value=2></option>
<option value=0></option>
<option value=3></option>
</select>
</td>

To:


<td>
<select id="TipPositionType" class="opTextBox" size="1"
onChange="HandleShowToolTipsSelection(); ThemeUpdated();"
>
<option value=0></option>
<option value=1></option>
<option value=2></option>
<option value=3></option>
</select>
</td>

Now, numbers and descriptions matcht.

Tested and works fine for me.

Thanks and regards

Link to comment
Share on other sites

Inside the Changelog.txt for the next release, I don't see the Fix about AutoAdminLogon (post #66).

Inside jscript.js

Line 353:

Change:

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",1,"REG_DWORD");

To:

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",1,"REG_SZ");

Line 371

Change:

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",0,"REG_DWORD");

To:

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",0,"REG_SZ");

Thanks and regards

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...