Sign in to follow this  
Followers 0
alexlaitw

About AutoIt3 and Windows 7

3 posts in this topic

Hi,All:

I am a newbie from Taipei,Taiwan., and need some help !!

We have Both Windows 7 and Windows XP client machine for normal users, All of the machine is join to Windows 2003 AD,

user rights are restricted.

Now, I try to installing Flash player to the user's computer by AutoIt Script like this:

runas("administrator","domain","pass",0,"\\server\update\flashplayer_10_ax_debug.exe")
Sleep(4000)

Opt("WinTitleMatchMode", 2)
WinSetOnTop("[Class:AdobeFlashPlayerInstaller]","",1)
Sleep(4000)
WinActivate("[Class:AdobeFlashPlayerInstaller]","")

IF WinWaitActive("[Class:AdobeFlashPlayerInstaller]","我已閱讀並接受 Flash Player") <> 0 Then
    Sleep(2000)
    ControlCommand("[Class:AdobeFlashPlayerInstaller]","我已閱讀並接受 Flash Player",200,"check","")
    Sleep(2000)
    ControlClick("[Class:AdobeFlashPlayerInstaller]","我已閱讀並接受 Flash Player","Button3")
ENDIF

Sleep(10000)
IF WinWaitActive("[Class:AdobeFlashPlayerInstaller]","N") <> 0 Then
    ControlClick("[Class:AdobeFlashPlayerInstaller]","N","Button3") 
ENDIF

The script running on a Windows 7 , and logon to the domain administrator account, every thing is fine.

But, running on client Windows 7 machine, the flash installer is appear on the screen, then do nothing.

The AutoIt tray icon is still and pause.

What is wrong ??

Sorry for my poor English.

Share this post


Link to post
Share on other sites



Did you run the AutoIt script as administrator? Non admin apps can't "talk" with admin ones.

Dear Sir:

The problem is resolved!! as you know, Windows 7 Have UAC to take control all of the apps, so, I have to disable UAC to running AutoIT scripts; or some other way is: running command prompt as Administrator first.

Many thanks !! You guiding me in the right way !!

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  
Followers 0