Jump to content

3 Straight Questions.


Guest rathore
 Share

Recommended Posts

Guest rathore

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

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.

Q3

WinMenuSelectItem 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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

Guest rathore

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

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. :whistle:

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...