Jump to content
Sign in to follow this  
vtdlbm

can someone please help me?

Recommended Posts

vtdlbm

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

Share this post


Link to post
Share on other sites
vtdlbm

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

Share this post


Link to post
Share on other sites
vtdlbm

thanks a lot for your help !

Share this post


Link to post
Share on other sites
Manko

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

Share this post


Link to post
Share on other sites
vtdlbm

how can I do this? (first topic...)

Share this post


Link to post
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
Sign in to follow this  

×