Guest lostarnes Posted May 21, 2004 Share Posted May 21, 2004 I wrote a small script to answer the prompts generated by WinZip when opening a self-extracting file. It worked great. I would like to schedule this to run at night either with the task scheduler or using PSEXEC form anothe machine. This fails. I assume its because there are no "windows" generated for AutoIt to work with? Is there a way around this? Or do I need another tool? Run("c:\ptc\test.exe") WinWaitActive("WinZip Self-Extractor - test.exe", "", 5) ; Send Unzip Send("!u") ; Prompt saying files unzipped, OK WinWaitActive("WinZip Self-Extractor") ; Send OK Send("{ENTER}") ; Original Winzip window WinWaitActive("WinZip Self-Extractor - test.exe") ; Send Enter to close Send("{ENTER}") WinWaitClose("WinZip Self-Extractor - test.exe") Link to comment Share on other sites More sharing options...
ezzetabi Posted May 21, 2004 Share Posted May 21, 2004 It is not better just use WinZip in its command line version?ftp://ftp.winzip.com/wzcline.exe Link to comment Share on other sites More sharing options...
Guest lostarnes Posted May 21, 2004 Share Posted May 21, 2004 That works but you have to have the command line add-on installed on the remote workstations. I tried just copying the WZUNZIP exe over but it wanted some dll's. Link to comment Share on other sites More sharing options...
scriptkitty Posted May 21, 2004 Share Posted May 21, 2004 (edited) use controlsend, you will have to find the name of the control most likely, but you could try it without, like:Run("c:\ptc\test.exe") Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=... WinWait("WinZip Self-Extractor - test.exe", "", 5) ControlSend("WinZip Self-Extractor - test.exe","","","!u") WinWait("WinZip Self-Extractor") ControlSend("WinZip Self-Extractor","","","{ENTER}") WinWait("WinZip Self-Extractor - test.exe") ControlSend("WinZip Self-Extractor - test.exe","","","{ENTER}")I would look for an actual control, and the winwait might not work, but this is a start.You could also fileinclude the extractor in the autoit exelook at 7zip's extractor. Fast free, and I think the command line only needs the exe....edit forgot to give URLhttp://www.7-zip.org Edited May 21, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
ezzetabi Posted May 21, 2004 Share Posted May 21, 2004 This may help too:http://www.info-zip.org/pub/infozip/UnZip.html Link to comment Share on other sites More sharing options...
Somerset Posted May 21, 2004 Share Posted May 21, 2004 god i am so outta touch. still using pkunzip... Link to comment Share on other sites More sharing options...
ezzetabi Posted May 21, 2004 Share Posted May 21, 2004 god i am so outta touch. still using pkunzip...Is my english so poor or this sentence is quite meaningless? Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 21, 2004 Administrators Share Posted May 21, 2004 Is my english so poor or this sentence is quite meaningless? I think it's you god i am so outta touch. still using pkunzip...god = oh deari am so outta touch = I am not familiar with current technologystill using pkzip = still using pkzip Edit: "out of touch" maybe a phrase with no direct translation Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
ezzetabi Posted May 21, 2004 Share Posted May 21, 2004 " All hail to Him good Jon He who creates AutoIt and helps us with our jobs." "All hail to Jon that also helps us understanding slang" "Good Jon, we all love you..." Link to comment Share on other sites More sharing options...
Somerset Posted May 21, 2004 Share Posted May 21, 2004 pkzip -> PKWARE introduced PKZIP in 1989, for DOS. outta touch - > Meaning i am still using commandline 16bit tools, made for dos. - > means that i am not giving them up any time soon. 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