atzoref Posted January 19, 2012 Share Posted January 19, 2012 Hi, How can control "Save As" and "Open" Dialogs on other GUI by: 1) Set its destination address by wanted address 2) Set a name of file for saving or opening 3) Save or Open 4) Overwrite a file if exist (in "Save As" dialog) Thanks Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted January 19, 2012 Share Posted January 19, 2012 It depends entirely on the "other gui". Best bet is to make use of the "AutoIt Window Info" or to use key strokes. If you want a specific answer, try to whip up an example. Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
atzoref Posted January 19, 2012 Author Share Posted January 19, 2012 Yes of course I already have the window details. But I don't know how to change and set what I wrote. The address is more problematic cus it not typical edit box, with the filename I almost succeeded but sometimes it is not work properly and about (3) I don;t know too. If you have an example of controling on a dialog like this it will be good Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted January 19, 2012 Share Posted January 19, 2012 Here is an example of an example. $sPath=@DocumentsCommonDir $sFILE=$sPath&'test.txt' $sApp="notepad.exe" $sAppTitle="[CLASS:Notepad]" $sSaveTitle='Save As' $sSaveInputTitle="Edit1" Run($sApp) WinWait($sAppTitle) send("!fa") WinWaitActive($sSaveTitle) ControlSetText($sSaveTitle,"",$sSaveInputTitle,$sFILE) Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
atzoref Posted January 19, 2012 Author Share Posted January 19, 2012 Thanks, I will try it. And what about the "Overwrite" thing, what I should to write so when it popup or not it still will save the file by its name? Link to comment Share on other sites More sharing options...
atzoref Posted January 22, 2012 Author Share Posted January 22, 2012 Someone? How I deal with the "Overwrite" popup? Thanks. Link to comment Share on other sites More sharing options...
KaFu Posted January 22, 2012 Share Posted January 22, 2012 (edited) Try something like this: Sleep(3000) ; to give the popup some time If WinExists("popup") Then ControlClick("popup", "", "button1") ; use Au3Info to get the right button index. EndIf Edited January 22, 2012 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
atzoref Posted January 22, 2012 Author Share Posted January 22, 2012 Thanks It's works! You can close this topic. 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