Using AutoScript

AutoScript is a tool designed to help you write PowerScript code more quickly by providing a lookup and paste service inside the Script editor.

If you are not sure what the name or syntax of a function is or what the names of certain variables are, AutoScript can show you a list to choose from and paste what you need right into the script. If you can remember part of the name, start typing and press a shortcut key (if assigned) (or do nothing if automatic pop-up is turned on). If you cannot remember the name at all, turn automatic pop-up on, and place your cursor at the beginning of a new line or in white space.

Where you use AutoScript

You can use AutoScript in different contexts:

  • When you can remember part of the name and you want AutoScript to finish typing it for you or show you a list of alternatives.

  • When you cannot remember the name or you just want a list. AutoScript options can help you narrow the list if you do not know the name but you do know the type you are looking for.

  • When you want a list of the properties and/or functions and events that apply to an identifier followed by a dot.

Two ways to use AutoScript

AutoScript can pop up a list automatically when you begin typing, or when you request it:

  • Turn automatic pop-up on to have AutoScript pop up the list or complete what you are typing. See Using automatic pop-up.

  • Invoke AutoScript when you need it by pressing the shortcut key you assigned to the Edit > Activate AutoScript menu item when you have typed one or more characters. See Creating shortcut keys. Pressing the shortcut key activates AutoScript only once. It does not turn automatic pop-up on.