shay Posted June 8, 2010 Share Posted June 8, 2010 (edited) Hi i use AutoIt to uninstall and reinstall software, i create this script on my test PC and it work OK (XP 32bit SPII), but when testing it on the actual PC (XP 64Bit SPII) it didn't work, the script stuck on "close installation GUI". i also try to replace it with "WinWaitActive" to detect the last installation window but it didn`t work on the actual pc also. (this is a apart of the big script) expandcollapse popup$exe = "c:\automation_files\setup.exe" $run=Run($exe) if $run = 0 Then MsgBox (16, "Automation", "Unable to locate Installation File, Exit Installation") Exit Endif ;focus in window WinActivate ("LU-1000") ;press key in GUI WinWaitActive("LU-1000") Sleep(1000) ControlClick('','', "&Next >") Sleep(1000) WinWaitActive("","Select Installation Folder") send("{TAB}") sleep(500) send("C:\Program Files (x86)\LiveU") sleep(500) ControlClick('','', "&Next >") ControlClick('','', "&Next >") winWaitActive("","Confirm Installation") controlClick('','', "&Next >") sleep(30000) ;close installation GUI Do WinActivate ("LU-1000") $handle = WinGetHandle("LU-1000","") sleep(1500) $wait = WinWait("LU-1000", "exit") Until $wait = $handle WinActivate ("LU-1000") sleep(2000) ControlClick('','', "&Close") send("{ENTER}") sleep(2000) Edited June 8, 2010 by shay "If the facts don't fit the theory, change the facts." Albert Einstein Link to comment Share on other sites More sharing options...
rudi Posted June 8, 2010 Share Posted June 8, 2010 Hi. This might be worth a try: 1.) address the window within your controlclick(), use controlclick("Title","WindowText",...) 2.) Read the help file, topic control. Try a different way to address the control you need to click. (Autoit Help -> Autoit -> Using Autoit -> Controls) Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
shay Posted June 9, 2010 Author Share Posted June 9, 2010 (edited) 1.) address the window within your controlclick(), use controlclick("Title","WindowText",...)2.) Read the help file, topic control. Try a different way to address the control you need to click. (Autoit Help -> Autoit -> Using Autoit -> Controls)Regards, Rudi.the problem isn't the controlclik addressing, (I try that)the script work flawlessly on XP32bit PC and on my other PC (64bit) its stuck, unable to confirm that window exist, is there any problem with running script on 64BIT machine? Edited June 9, 2010 by shay "If the facts don't fit the theory, change the facts." Albert Einstein 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