Author Archives: admin

Lux Thermostat – TX500U – Low Battery fix

Lux TX500U Thermostat

The Lux TX500U thermostat seems to have a bug where it reports low battery even after batteries were replaced – the top right of the screen will read “Lo Batt”. To fix this issue follow the below steps.

Taken from an amazon review:

Perform if installation of known fresh batteries does not resolve the flashing Lo Bat condition. You might want to read through the procedure before starting. To perform the Hardware Reset, proceed as follows:

1. Remove thermostat from its wall unit as if you were changing batteries and install fresh batteries. (I have not tried this with rechargeables so, ensure the batteries are of the 1.5 volt alkaline variety or equivalent as newer 1.5 volt battery chemistries might be available. You might try with rechargeables, but might have to perform the procedure at more frequent intervals throughout any given season.)

2. Make sure the switch positions on the thermostat are in the following positions:
–Temp Slider: OFF
–Set Slider: Air Filter
–FAN slider: can be in AUTO or ON, doesn’t really matter

3. Hold the thermostat in each hand so that the UP/DOWN buttons on the front can be depressed with each thumb. No need to press just yet.

4. While holding the thermostat in this manner, rotate it slightly toward you to locate the HW RST button on the back in about the center of the circuit board. You are now ready to RESET!!

5. Simultaneously PRESS & HOLD the UP/DOWN buttons on the front and while continuing to hold, then press and release the HW RST button on the circuit board. Continue holding the UP/DOWN buttons on the FRONT until 00 appears on the display.

6. When 00 appears, you may RELEASE the UP/DOWN buttons, then press & release the HW RST one more time.

7. If performed correctly, Days, Filter and 90 should now appear on the display. If you do not get this result, repeat 1 through 6 ensuring slider switches are in the correct positions and the reset sequence is correctly followed.

8. If #7 is successful, slide the Set Slider to RUN. The display should now show current ambient temperature, flashing display for programming time and temperature settings and the maximum number of bars for a full battery. If using rechargeables such as NiMH rechargeables, you might observe fewer bars for a full battery.

9. Hardware reset is complete and you can now reattach to wall unit and proceed with programming IAW the user guide.

VBS – Installed RAM

The below snippet of vbs is used to query WMI for the amount of ram installed on a pc. For a remote device, change strComputer to the hostname of the target computer.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSettings = objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
For Each objComputer in colSettings 
 Wscript.Echo "System Name: " & objComputer.Name
 Wscript.Echo "Total Physical Memory: " & objComputer.TotalPhysicalMemory
Next

Taken from: https://msdn.microsoft.com/en-us/library/aa394587(v=vs.85).aspx

Perfect download manager – uGet

Every now and then I find the need to use a download manager. However they normally take over your system attempting to handle every download. Most of the free ones also tend to be packed full of ad-ware.

Today I ran into uGet, which is absolutely perfect.  On top of being both open source and portable, it does exactly what its intended to do – download – without any added frills or annoyances.

Product homepage: http://ugetdm.com/
S
ourceForge page: http://sourceforge.net/projects/urlget/

uget

AxAcroPDF control focus stealing prevention

The AxAcroPDF control takes focus when a PDF file is loaded into it.

To prevent this, the AxAcroPDF control is placed into a panel which is disabled prior to loading a pdf. This inturn disables the AxAcroPDF control preventing it from taking focus.

A mouse hook is used to check if the mouse has entered the area of the panel, in which case the panel is enabled to allow the user to interact with the AxAcroPDF control.

axacropdf_focus

 

VB.net Source: AxAcroPDF-Focus-Example.zip (5517 downloads )

Get members from AD group in VBA

Get the names of all the members in an active directory group – in VBA

Returns the list of names semicolon deliberated

Function getNamesADGroup(groupname As String) As String
    On Error Resume Next
    Dim ret As String
    Set Group = GetObject("WinNT://" & "corp" & "/" & groupname & ",group")

    For Each Member In Group.Members
        If Len(Member.FullName) Then _
            ret = ret & Member.FullName & ";"
    Next
    On Error GoTo 0
    If Len(ret) Then _
        getNamesADGroup = Left(ret, Len(ret) - 1)
End Function