trekerck Posted December 22, 2011 Share Posted December 22, 2011 Hi All, I am a new user to autoit and I created my first script to automate a mentor graphics 3.3 install and it worked great manually but when I used it though SCCM it did not work...bummer. and I noticed these icons on the sys tray spawning. I converted into .exe but it seemed like I got problems instead of solutions. Has anyone used it for Mentor Graphics to automate keys ? do you call the .exe directly? Link to comment Share on other sites More sharing options...
kaotkbliss Posted December 22, 2011 Share Posted December 22, 2011 are you calling an exe inside a loop? are you calling your script inside your script? did you name your script the same name as the program you're trying to automate? 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
kylomas Posted December 22, 2011 Share Posted December 22, 2011 trekerk, And your script is...???? Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
trekerck Posted December 22, 2011 Author Share Posted December 22, 2011 (edited) My scipt is below, I had it all uncommented at one pointScript Start - Install Mentor Graphics quietly ;RunWait (@ComSpec & " /c " & 'msiexec.exe /i setenv.msi /qb /l* %temp%setenv.log', "", @SW_HIDE) ;RunWait (@ComSpec & " /c " & 'vcredist_x86.exe /q /l:%temp%redist_mentor.log', "", @SW_HIDE) ;RunWait (@ComSpec & " /c " & 'msiexec.exe /i gw2odb_setup_v820 /qb /l* %temp%Valor_install.log', "", @SW_HIDE) ;RunWait (@ComSpec & " /c " & 'SETUP.EXE -silent -batch batchinstall.bat', "", @SW_HIDE) ;RunWait (@ComSpec & " /c " & '.DC7.9.1SETUP.EXE -silent -batch batchinstall.bat', "", @SW_HIDE) WinWaitActive("Mentor Graphics Install") ;ControlSend("Mentor Graphics Install", "What would you like to do? >", "Robot", "d" ,"1") Send("d") sleep (3000) Send("{ENTER}") Send("y") Send("e") Send("s") sleep (3000) Send("{ENTER}") WinMinimizeAll() ;-------------------------------------------------------------------------------- ; GW20DB install ;WinActivate ("GW2ODB Setup") ;-------------------------------------------------------------------------------- ; Mentor Graphics MGC SDD Configurator SILENCE SEQUENCE WinWaitActive ("MGC User Environment- Select License Type") Send("{Esc}") sleep(2000) Send("{ENTER}") ;ControlCommand "UnCheck", "Put whatever name in to uncheck radio button" ;ControlCommand "Check", "Put License Radio Button Name here" ;controlCommand ;Install# 2 from DC7.9.1 folder ;RunWait (@ComSpec & " /c " & '.DC7.9.1SETUP.EXE -silent -batch batchinstall.bat', "", @SW_HIDE) ;WinClose ("Mentor Graphics Install")Edit:Just put [autoit] before and [/autoit] after your posted code to get it in a nice box like this. Edited December 22, 2011 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
trekerck Posted December 22, 2011 Author Share Posted December 22, 2011 sorry for the small print 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