alexlaitw Posted January 10, 2011 Share Posted January 10, 2011 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. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 10, 2011 Share Posted January 10, 2011 Hi and Welcome to the forums! Did you run the AutoIt script as administrator? Non admin apps can't "talk" with admin ones. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
alexlaitw Posted January 11, 2011 Author Share Posted January 11, 2011 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 !! 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