Page 1 of 1

FileInsertAtCursor

Posted: Thu Oct 16, 2008 9:36 pm
by pwdiener
How does FileInsertAtCursor work? I'm assuming that a file is inserted in to the current document at the cursor position. Is the name of the file to be inserted passed as an argument to FileInsertAtCursor?

Are there other keyboard functions (macro functions) that take parameters?

Bill

Posted: Thu Oct 16, 2008 10:26 pm
by jussij
How does FileInsertAtCursor work? I'm assuming that a file is inserted in to the current document at the cursor position.
That is correct ;)
Is the name of the file to be inserted passed as an argument to FileInsertAtCursor?
No. The FileInsertAtCursor is a keyboard function an like all keyboard functions takes no arguments.

The function will prompt the user for the file to be inserted.

To see how it works just do the following:
  1. File, New menu
  2. Macros, Execute Script menu
  3. Type in FileInsertAtCursor
Are there other keyboard functions (macro functions) that take parameters?
None.

But if needed it should be very easy to write a macro that does the same and also takes a file name as a paramater;)

Cheers Jussi