Default Posted October 25, 2008 Posted October 25, 2008 Hi,I have two scripts... If Script A sends WinClose ( "Script B"). How do I get Script B to save it's data before it closes?
dbzfanatic Posted October 25, 2008 Posted October 25, 2008 You could try Case $GUI_EVENT_CLOSE ;do your saving code here Exit Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
BrettF Posted October 25, 2008 Posted October 25, 2008 If script A starts script B then it can be much easier. Take a look at EnvSet/EnvGet... 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!
Default Posted October 26, 2008 Author Posted October 26, 2008 Thanks for the replies. B has a $GUI_EVENT_CLOSE function but that doesn't get called when it's closed by A. Unfortuantely A doesn't start B. I will investigate EnvSet/EnvGet though.
ResNullius Posted October 26, 2008 Posted October 26, 2008 Hi,I have two scripts... If Script A sends WinClose ( "Script B"). How do I get Script B to save it's data before it closes?Check out Opt("OnExitFunc"...)
Default Posted October 27, 2008 Author Posted October 27, 2008 "OnExitFunc" That's the one! Perfect. Thanks.
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