Ajays Posted September 2, 2009 Share Posted September 2, 2009 Hi, I want to read the title of a window and then write that title on a notepad. Is this possible to get the title of a window through any predefined Auto it function or through Auto it coding. Please let me know. Regards, Ajay Link to comment Share on other sites More sharing options...
Manjish Posted September 2, 2009 Share Posted September 2, 2009 WinGetTitle() and Filewrite() will help you here. Don't feel shy to check in help file for this.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
Bert Posted September 2, 2009 Share Posted September 2, 2009 May I suggest you take the AutoIt 1 2 3 course as well as viewing the youtube videos on AUtoIt. Links are in my signature The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Ajays Posted September 4, 2009 Author Share Posted September 4, 2009 WinGetTitle() and Filewrite() will help you here. Don't feel shy to check in help file for this.. Hi Manjish,Thanks a lot for the reply and help. I am able to get the title of the windows with WinGetTitle(), I am also able to print the title on the notepad with Filewrite(). Is their any way to print the title on the notepad with send() command. I am asking this because when i am printing the title on the notepad with Filewrite(). After this operation i am printing some other lines on the notepad with send() command. Now the other send commands overwrites the line written with Filewrite().Please let me know if you have any solution to this problem. Regards,Ajay Link to comment Share on other sites More sharing options...
Ajays Posted September 4, 2009 Author Share Posted September 4, 2009 May I suggest you take the AutoIt 1 2 3 course as well as viewing the youtube videos on AUtoIt. Links are in my signatureHi Volly,Thanks for the post, and many thanks for the tutorials. Volly i am learning a lot from the tutorials. I will be always in touch you and Manjish and all autoit forums members. Regards,Ajay Link to comment Share on other sites More sharing options...
Manjish Posted September 9, 2009 Share Posted September 9, 2009 Yes the reason why that's happening is because whenever you open a file (without using FileOpen())the cursor will be at 1st character position. So when u send the keys, they will go at the top of the file.Hence, the best option is to use the File.au3 functions. Open the file in write mode (either append or overwrite).. With append mode, you can append to existing contents of the file and with overwrite mode, you can overwrite previous contents.. Of course all this is mentioned in the help file, if you have the patience to read it. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com 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