stockboy Posted January 15, 2007 Posted January 15, 2007 CODEWinSetState("Aphrodite - Upgrade & Install", "OK") WinWait("Aphrodite - Upgrade & Install") ControlClick ( "Aphrodite - Upgrade & Install", "OK", 2) WinSetState( "WinZip Self-Extractor - Persm050102-0008UI.exe", "Unzip") WinWait("WinZip Self-Extractor - Persm050102-0008UI.exe") ControlSend ( "WinZip Self-Extractor - Persm050102-0008UI.exe", "Unzip", 106, $pad6 ) ControlClick ( "WinZip Self-Extractor - Persm050102-0008UI.exe", "Unzip", 1) WinSetState("WinZip Self-Extractor - Password", "password") WinWait("WinZip Self-Extractor - Password") ControlSend ( "WinZip Self-Extractor - Password", "password", 402, "xxxx" ) ControlClick ( "WinZip Self-Extractor - Password", "password", 1) This script unzips Persm050102-0008UI.exe. It gives 3 screens. I have to fill in a path, press a few buttons and give in a password. 1) Is it possible to run this completely hidden. Can't get it done with @HIDE. 2) When 1) is solved, do you think it's possible to run this (as a service) on a server where NOBODY is logged on? THX for helping me
BrettF Posted January 15, 2007 Posted January 15, 2007 (edited) WinSetState("Aphrodite - Upgrade & Install", "OK",@SW_HIDE) Try That... As for question 2... I dont know Edit.... Forgot a bit Edited January 15, 2007 by bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
stockboy Posted January 15, 2007 Author Posted January 15, 2007 @SW_SHOWMINIMIZED gives it mimimized but @SW_HIDE does not work. It gives the first screen, hides it... after hiding the script doesn't go further anymore... Without 'winsetstate' the script works perfect (but than it's not hidden of course)
BALA Posted January 15, 2007 Posted January 15, 2007 (edited) I think it's not working because once you hide it, it's not active anymore. You would have to check the processes and select that one to continue it. I don't know if that would keep it hidden though. Edited January 15, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
stockboy Posted January 15, 2007 Author Posted January 15, 2007 @bala you're probably right, I don't think I can hide it... P.S. I can select an application to continue but I don't think it's possible to select a process to continue...
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