Set Up an Auto-Login Feature for the Time Clock

Overview

Updated 06/25/2021

 

The following setup information describes how to create an executable file that can be used to launch a time clock and automatically log into the time clock, bypassing manual login with username and password. With an executable file to launch the time clock, the executable file can be placed on the desktop or it can be set to automatically launch at Windows startup.

Note: With this type of login using the executable, only one login is allowed per timeclock.

  1. Download AutoIT from http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe and install. This step must be performed before the next step or an error will occur.

  2. Download AutoIT Script Editor (SciTE) from http://www.autoitscript.com/site/autoit-script-editor/downloads/.

  3. Create the auto-login file (.au3) by copying the code below directly into the AutoIT Script software. The following steps describe the modifications needed to this file per timeclock.
    #include <IE.au3>
    $oIE = _IECreate("http://YourDomainHere.com/Avionteportal/main.aspx?App=3&Companyid=PlaceCompanyNameHere")
    With $oIE
        .Left = 0
        .Top = 0
        .Menubar = False
        .Resizable = False
        .StatusBar = False
        .TheaterMode = True
        .Toolbar = False
        .Visible = True
    EndWith
    
    ; Set UserName to msi
    Local $oUserName = _IEGetObjByName($oIE, "ctl00$ContentPlaceHolder1$Login1$WebPanel1$TextBox1")
    _IEFormElementSetValue($oUserName, "TimeClockUserNameHere")
    ; Set password to msi
    Local $oPassword = _IEGetObjByName($oIE, "ctl00$ContentPlaceHolder1$Login1$WebPanel1$TextBox2")
    _IEFormElementSetValue($oPassword, "TimeClockPasswordHere")
    
    ; Login and proceed to timeclock
    Local $oLoginButton = _IEGetObjByName($oIE, "ctl00$ContentPlaceHolder1$Login1$WebPanel1$Button1")
    _IEAction($oLoginButton, "click")
  4. In the IECreate link displayed above, replace the domain and company name with the correct values for the company's portal.

  5. Replace the $oUserName value for TimeClockUserNameHere with the username of the timeclock.

  6. Replace the $oPassword value for TimeClockPasswordHere with the password for the timeclock.

  7. Save the file with a name relevant to the timeclock you are configuring.

  8. Compile the file by pressing F7 on the keyboard.

  9. Build the file by pressing the keyboard combination of Shift + F7. An executable file should have been saved in the location where you saved the .au3 file.

  10. Test the setup by double-clicking the executable file. The timeclock should open without requiring a username and password.

  11. To finish the setup, copy the completed application to the timeclock computer.

 

Back to Top

 

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.