Jump to content

can someone please help me?


Recommended Posts

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.")



; copy the content to clipboard

While 1

$chars = FileRead($file)

If @error = -1 Then ExitLoop



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

Link to comment
Share on other sites

that's great, but not exactly what i'm looking for

I have no problem configuring manually .xyz files to open with the script (from control panel)

what I do not know how to do is how to pass file.xyz as an argument to the script

not even sure if you can do this, but there should be a way...

Link to comment
Share on other sites

Rename post as solved please...

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...