Guest rathore Posted March 29, 2004 Share Posted March 29, 2004 Q. how do i make autoit insert a line in a file at a specified line number given and shift the others a line lower. Q. how about writing something at a particular char position in a file in specified line (like in a 100 line file write on 15th line "some text" at 5th char position) Q. these don't seem to work in Outlook Express's New Message window... WinMenuSelectItem("New Message", "", "&File" , "&Close") WinMenuSelectItem("New Message", "", "File" , "Close") Link to comment Share on other sites More sharing options...
scriptkitty Posted March 29, 2004 Share Posted March 29, 2004 (edited) Q1 http://www.hiddensoft.com/forum/index.php?...l=filewriteline Q2 ; if $line had all the line info. $line=Stringleft($line,5) & "some text" & Stringtrimleft($line,5) ; then write the line. Q3WinMenuSelectItem will only work on standard menus. Unfortunately, many menus in use today are actually custom written or toolbars "pretending" to be menus. This is true for most Microsoft applications.edit, if you need an actual full script func, I would be happy to do one... this was just to show you how. Edited March 29, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Guest rathore Posted March 29, 2004 Share Posted March 29, 2004 THANX! i've copied the code from the links... i'll check them out. and for the menu i just wanted to check if it was something i'd missed, i think i can still do it using control functions... and these's good old send (if the win's active at the time) Link to comment Share on other sites More sharing options...
scriptkitty Posted March 30, 2004 Share Posted March 30, 2004 NP, I hate those menus. But Controlsend works great for them. Actually the code would be: ControlSend("New Message", "", "" , "!fc") at least I think this works well. If you get stuck on anything, there are a lot of us here to help. And most of the time you can look at something 50 times and miss what is right in front of ya. I hope you find this program as helpful as I do. AutoIt3, the MACGYVER Pocket Knife for computers. 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