blumsguett Posted June 2, 2006 Posted June 2, 2006 Hi, testing following script: Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Programme\Adobe\Acrobat 7.0\Reader\AcroRd32.exe') WinWait("Adobe Reader","") If Not WinActive("Adobe Reader") Then WinActivate("Adobe Reader") WinWaitActive("Adobe Reader") but i get no focus, activate... for Acrobat Reader... why ??? thx blumshuett
Moderators SmOke_N Posted June 2, 2006 Moderators Posted June 2, 2006 It's probably your WinTitleMatchMode... since you are not using classname= try just using 2 instead of 4 and see if that helps. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
blumsguett Posted June 2, 2006 Author Posted June 2, 2006 Opt("WinTitleMatchMode",2) does not work... i see adobe reader in the taskbar, but no focus...
Emperor Posted June 2, 2006 Posted June 2, 2006 Try changing your WinWaitDelay, I changed mine to 500 and it worked for me.
blumsguett Posted June 2, 2006 Author Posted June 2, 2006 i change WinWaitDelay to 5000... works... it is possible, to change WinWaitDelay for 2 or more times in the script ???
MHz Posted June 2, 2006 Posted June 2, 2006 Yes, add WinWaitDelay on any line in the script to change setting for code that follows. Add it as many times as you like. Adobe has a tuner application on their site for setting the installer with your preferences and then you could then just silent install. Just a thought.
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