april Posted September 15, 2009 Share Posted September 15, 2009 Hi all, After I open a notepad, input some text to notepad, then I want to au3 script to click "Save As". I have tried to use AutoIt v3 Window Info to grab information for "Save as", but I could not find any info. Anyone knows how to do it in au3? Thanks! April Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 15, 2009 Share Posted September 15, 2009 Hi all,After I open a notepad, input some text to notepad, then I want to au3 script to click "Save As". I have tried to use AutoIt v3 Window Info to grab information for "Save as", but I could not find any info.Anyone knows how to do it in au3?Thanks!AprilPost what you tried. AU3Info.exe has no trouble with the "Save As" dialog window from Notepad. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
april Posted September 15, 2009 Author Share Posted September 15, 2009 My code: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinMenuSelectItem("Untitled - Notepad", "", "&File", "Save As..." ) Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 15, 2009 Share Posted September 15, 2009 My code:Run("notepad.exe")WinWaitActive("Untitled - Notepad")Send("This is some text.")WinMenuSelectItem("Untitled - Notepad", "", "&File", "Save As..." )What happens next?That pops the SaveAs dialog, and then you check it out with AU3Info.exe to know what to change, right? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
april Posted September 15, 2009 Author Share Posted September 15, 2009 My problem is "Save as" dialog Never popup. So I Can't continue to do other things. Thanks! April Link to comment Share on other sites More sharing options...
bogQ Posted September 15, 2009 Share Posted September 15, 2009 (edited) My problem is "Save as" dialog Never popup. So I Can't continue to do other things. Thanks! April can this help? WinWaitActive("Untitled") Send("^s") WinWaitActive("Save As") edit: or this WinMenuSelectItem("Untitled - Notepad", "", "&File", "Save &As..." ) from autoit help file Thus, the menu item File would actually require the text "&File", and Convert would require "Con&vert" Edited September 15, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 15, 2009 Share Posted September 15, 2009 My problem is "Save as" dialog Never popup. So I Can't continue to do other things. Thanks! April Oops, I missed that. You need: "&File", "Save &As..." Note the 'A' is an accelerator key in 'Save As'. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
april Posted September 15, 2009 Author Share Posted September 15, 2009 Thank you for the help. It works. However, I have one more question. If I directly look at the menu,there is _ under A for "Save As...". Also there is no _ under "File". How could I know there is accelerator key? Thanks! April Link to comment Share on other sites More sharing options...
bogQ Posted September 16, 2009 Share Posted September 16, 2009 Thank you for the help. It works.However, I have one more question. If I directly look at the menu,there is _ under A for "Save As...". Also there is no _ under "File". How could I know there is accelerator key?Thanks!Aprilyou press on keyboard ALT then F then A, at the moment you press ALT youl see place where _ is located TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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