| Class | Win32::Shortcut |
| In: |
shortcut.rb
|
| Parent: | Object |
| VERSION | = | '0.2.1' | ||
| SHOWNORMAL | = | 1 | Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time. | |
| SHOWMAXIMIZED | = | 3 | Activates the window and displays it as a maximized window. | |
| SHOWMINNOACTIVE | = | 7 | Displays the window in its minimized state, leaving the currently active window as active. | |
| Arguments | = | args | ||
| Description | = | desc | ||
| HotKey | = | key | ||
| IconLocation | = | location | ||
| TargetPath | = | link_path | ||
| WindowStyle | = | style | ||
| WorkingDirectory | = | directory |
Creates and returns a Shortcut object. In block form it yields self and automatically ensures that Shortcut#save is called at the end of the block. In non-block form it does not actually create the shortcut until the Shorcut#save method is called.
Identical to Shortcut#new except that it will raise an ArgumentError unless the file already exists.
Returns the hotkey (i.e. shortcut key) associated to the shortcut, in the form of a 2-byte number of which the first byte identifies the modifiers (Ctrl, Alt, Shift) and the second is the ASCII code of the character key.
Returns the name of the file that contain the icon for the shortcut. In practice this is almost always blank. YMMV.
Returns the type of window style used by a shortcut. The possible return values are ‘normal’, ‘maximized’, or ‘minimized’.
Sets the window style to a shortcut. The style can be one of the following three constants or equivalent string values:
Please see the documentation for those constants for further details.
Returns directory in which the targeted program will be executed. Correspond to the "Start in" field of a Shortcut Properties Dialog Box.