Tutorial by Examples

Inside the script, use the first line to store the very first variable (in this example, %1%) with a name to deal with. Example: OpenWithFile = %1% Once you open a file with this script through Windows (Right click on any file on MS Windows and choose 'Open with...' then select the compiled version...
The following example creates a Gui with a single button wich brings the SelectFile dialog box. Gui, Loader: New Gui, Loader: Add, Button, Default Center w220 vLOAD, LOAD Gui, Loader: Show, AutoSize Center, Loader return LoaderButtonLOAD: FileSelectFile, LoadedFile, , , , if ErrorLevel...
This examples creates a new empty Gui sensible to Drag n' Drop event: Gui, Dropper: New Gui, Dropper: Font, s10 w700 Gui, Dropper: Add, Text, y80 vText1, Drag the files here Gui, Dropper: Show, w200 h200 Center, Dropper return DropperGuiDropFiles: DroppedFile:=A_GuiEvent FileRead, ...

Page 1 of 1