mangure Posted December 13, 2005 Posted December 13, 2005 Hi everybody, I have a little problem about FreePrimoPDF installation. I have generated the *.au3 file to install the software. It runs but I need that the installation runs or in background mode or including an option for avoiding the user interaction -mouse and keyboard- while the software is being installed with autoit3.exe. In spite of including @SW_HIDE, the software is installed showing the normal windows. Any Suggestions??? The PrimoPDF.au3 file is like: Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run("C:\DIR_TRABAJO\HUNOSA\PrimoPDF\FreePrimoSetup.exe", "", @SW_HIDE) WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >") WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) MouseMove(352,364) MouseDown("left") MouseUp("left") Sleep(1000) WinWait("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE) If Not WinActive("Programa de instalación de PrimoPDF","Acepto los términos ") Then WinActivate("Programa de instalación de PrimoPDF","Acepto los términos ") WinWaitActive("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE) MouseMove(194,304) MouseDown("left") MouseMove(194,303) MouseUp("left") Sleep(1000) MouseMove(331,364) MouseDown("left") MouseUp("left") Sleep(1000) WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >") WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) MouseDown("left") MouseUp("left") Sleep(1000) MouseDown("left") MouseUp("left") Sleep(1000) WinWait("PrimoPDF Setup","", @SW_HIDE) If Not WinActive("PrimoPDF Setup","") Then WinActivate("PrimoPDF Setup","") WinWaitActive("PrimoPDF Setup","", @SW_HIDE) MouseMove(21,375) MouseDown("left") MouseMove(20,375) MouseUp("left") Sleep(1000) WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >") WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE) MouseMove(239,74) MouseDown("left") MouseUp("left") Sleep(1000) MouseMove(236,96) MouseDown("left") MouseUp("left") Sleep(1000) MouseMove(234,76) MouseDown("left") MouseUp("left") Sleep(1000) MouseMove(351,367) MouseDown("left") MouseUp("left") Sleep(1000)
MHz Posted December 13, 2005 Posted December 13, 2005 Very little one can do for hiding installations when using mouse*() functions. I have a working english version that uses Control*() functions and have tried to translate the titles and text. You may still need to use Au3Info Tool to check the differences in control text... The installer windows will move off screen as from the 1st window. _FreePrimoPDF.html
seandisanti Posted December 13, 2005 Posted December 13, 2005 Hi everybody, I have a little problem about FreePrimoPDF installation. I have generated the *.au3 file to install the software. It runs but I need that the installation runs or in background mode or including an optionfor avoiding the user interaction -mouse and keyboard- while the software is being installed with autoit3.exe.In spite of including @SW_HIDE, the software is installed showing the normal windows. Any Suggestions???The PrimoPDF.au3 file is like:Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)Run("C:\DIR_TRABAJO\HUNOSA\PrimoPDF\FreePrimoSetup.exe", "", @SW_HIDE)WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)MouseMove(352,364)MouseDown("left")MouseUp("left")Sleep(1000)WinWait("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)If Not WinActive("Programa de instalación de PrimoPDF","Acepto los términos ") Then WinActivate("Programa de instalación de PrimoPDF","Acepto los términos ")WinWaitActive("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)MouseMove(194,304)MouseDown("left")MouseMove(194,303)MouseUp("left")Sleep(1000)MouseMove(331,364)MouseDown("left")MouseUp("left")Sleep(1000)WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)MouseDown("left")MouseUp("left")Sleep(1000)MouseDown("left")MouseUp("left")Sleep(1000)WinWait("PrimoPDF Setup","", @SW_HIDE)If Not WinActive("PrimoPDF Setup","") Then WinActivate("PrimoPDF Setup","")WinWaitActive("PrimoPDF Setup","", @SW_HIDE)MouseMove(21,375)MouseDown("left")MouseMove(20,375)MouseUp("left")Sleep(1000)WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)MouseMove(239,74)MouseDown("left")MouseUp("left")Sleep(1000)MouseMove(236,96)MouseDown("left")MouseUp("left")Sleep(1000)MouseMove(234,76)MouseDown("left")MouseUp("left")Sleep(1000)MouseMove(351,367)MouseDown("left")MouseUp("left")Sleep(1000)ok... a few things1) you can cut your code ALOT by replacing all of your "mousemove(),mousedown(),mouseup()" with 'mouseclick() or better yet, controlclick()2) it doesn't look like you're setting the window state anywhere.... you're using @sw_hide as your time out parameter on winwait, and winwaitactive functions, which doesn't do anything...3) when you use winsetstate("whatever",@SW_HIDE), you're not going to be able to use normal mouse moves etc to access the controls of the window as you're doing now, because the window won't be there to move the mouse around on.... look into controlclick() and controlsend()
blademonkey Posted December 13, 2005 Posted December 13, 2005 I dont want to be a party pooper but why dont you just use the builtin silent options for the setup?http://forums.primopdf.com/archive/index.php/t-200-Blademonkey ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
MHz Posted December 14, 2005 Posted December 14, 2005 I dont want to be a party pooper but why dont you just use the builtin silent options for the setup?http://forums.primopdf.com/archive/index.php/t-200-BlademonkeyNot so. I have yet to see a Setup Factory Installer to have a silent method.http://forums.primopdf.com/archive/index.php/t-505InstallShield switches do not work for a Setup Factory Installer.
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