sbonacina Posted February 3, 2009 Posted February 3, 2009 Hello all, I need to interact with an existing Window, which is non-autoit program launched by an autoit script. To be precise, I need to intercept the window closing, i.e. the user clicking on the X to close the window. Any help will be appreciated. Best Regards Stefano
BrettF Posted February 3, 2009 Posted February 3, 2009 Hello and welcome to the forums. I am by no means an expert, but I imagine it will have to be done with some sort of window hook to the WM_CLOSE or simmilar. Cheers, Brett 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!
sbonacina Posted February 3, 2009 Author Posted February 3, 2009 To be more precise, I need to remap the X button in order to save the current state of the application below and then to close the window and the application.
BigDod Posted February 3, 2009 Posted February 3, 2009 To be more precise, I need to remap the X button in order to save the current state of the application below and then to close the window and the application.Have a look for AnyGUI in the example scripts, I think you might find something there to help you. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
sbonacina Posted February 6, 2009 Author Posted February 6, 2009 Have a look for AnyGUI in the example scripts, I think you might find something there to help you.Thanks! I will and get back to you
sbonacina Posted February 9, 2009 Author Posted February 9, 2009 Hi all I repost in this section cause my question is GUI related. I need to interact with an existing Window, which is non-autoit program launched by an autoit script. To be precise, I need to intercept the window closing, i.e. the user clicking on the X to close the window, and remap the X button in order launch another application and close the first launched application. Any help will be appreciated. Best Regards Stefano
Bert Posted February 9, 2009 Posted February 9, 2009 ummm, why? That is a maulware trick. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Moderators SmOke_N Posted February 9, 2009 Moderators Posted February 9, 2009 Don't double post, topics merged. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
sbonacina Posted February 9, 2009 Author Posted February 9, 2009 ummm, why? That is a maulware trick.Funny, I didn't think of it.Actually, I'm a bit lazy and not-so-skilled in C++, so I don't want to get through all the source code, which somebody else wrote.
Moderators SmOke_N Posted February 9, 2009 Moderators Posted February 9, 2009 (edited) Funny, I didn't think of it.Actually, I'm a bit lazy and not-so-skilled in C++, so I don't want to get through all the source code, which somebody else wrote. Then I'd suggest you speak with the author of the code (since you seem to have it), and ask for their help on how to accomplish what it is you want to do with their application.Edit:And you need to come up with a much better reason for wanting to do this.Topic closed, do not start another. Edited February 9, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts