vtdlbm Posted October 6, 2011 Posted October 6, 2011 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
JohnOne Posted October 6, 2011 Posted October 6, 2011 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
vtdlbm Posted October 7, 2011 Author Posted October 7, 2011 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...
JohnOne Posted October 7, 2011 Posted October 7, 2011 example of command line arg complie this If $CmdLine[0] > 0 Then MsgBox(0,"Param 1", $CmdLine[1]) EndIf run this script from same folder Run("filename.exe hi_im_param_1") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Manko Posted October 7, 2011 Posted October 7, 2011 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now