ok.. here's what i'm trying to do: i want to associate a bogus extension - text file (let's say .xyz) with this script
whenever I doubleclick on a .xyz extension file, the script would run and add it's content to the windows clipboard
here's what i've got so far:
$file = FileOpen("$file opened with this script$", 0)
; Check if file opened for reading OK
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
; copy the content to clipboard
While 1
$chars = FileRead($file)
If @error = -1 Then ExitLoop
ClipPut($chars)
Wend
what i'm having problems with is finding a way to define < $file opened with this script$ > -> this being the .xyz file i doubleclicked on, starting the script
does anyone know how i could do this?
thanks for reading