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.
- 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.
- Download AutoIT Script Editor (SciTE) from http://www.autoitscript.com/site/autoit-script-editor/downloads/.
- 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")
- In the IECreate link displayed above, replace the domain and company name with the correct values for the company's portal.
- Replace the $oUserName value for TimeClockUserNameHere with the username of the timeclock.
- Replace the $oPassword value for TimeClockPasswordHere with the password for the timeclock.
- Save the file with a name relevant to the timeclock you are configuring.
- Compile the file by pressing F7 on the keyboard.
- 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.
- Test the setup by double-clicking the executable file. The timeclock should open without requiring a username and password.
- To finish the setup, copy the completed application to the timeclock computer.
Comments
0 commentsPlease sign in to leave a comment.