Jump to content
Sign in to follow this  

Input database password in a remote desktop

Recommended Posts

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.exe

Run("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";


Please help me, thanks.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...