a6751z Posted February 12, 2011 Share Posted February 12, 2011 Hello all,I have a remote build server and I always log in with Remote Desktop. During some process, an Access database password need to be input, and I use AutoIt to do that. But I met following issue - If I minimize the Remote Desktop window after starting the AutoIt script, the database password can not input, the Access stops there, waiting for the password; if activate the Remote Desktop window, the Access password can be input correctly.This is the AutoIt script for database password, named AutoDBCode.exeRun("C:\Program Files\Microsoft Office 2003\OFFICE11\MSACCESS.EXE D:\CPS.VC7\database\database.cfg /compact")WinWaitActive("Microsoft Access")WinWaitActive("Password Required")ControlSetText("Password Required", "","RichEdit20W1", "dbpassword")ControlClick("Password Required", "OK", "Button1")This is the perl script which call the AutoIt script:#! /usr/bin/perl$cmd = "AutoDBCode.exe";print "$cmd\n";system($cmd);Please help me, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now