Jjo Posted December 27, 2009 Posted December 27, 2009 Run("program.exe -parameter") -> how can i read that parameter? Projects: -Handy Musicplayer
Fubarable Posted December 27, 2009 Posted December 27, 2009 Sorry, what do you man by "read that parameter"?
JohnOne Posted December 27, 2009 Posted December 27, 2009 Are they not the parameters you enter yourself of the program you are running ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Jjo Posted December 27, 2009 Author Posted December 27, 2009 I have made changes in registry so if i click file with mousebutton2 and choose "run with my program" then windows checks the command from registry i wish to execute. It can be like "C:\myprogram\program.exe -file" where the file is original file which I clicked with mousebutton2 and ran with my program. So how my program can read what was the file? Hope you understand Projects: -Handy Musicplayer
PsaltyDS Posted December 27, 2009 Posted December 27, 2009 (edited) Try _ProcessListProperties() and look at the command line as returned in column 9 of the array. Edit: I thought you wanted that info for OTHER processes. All you need for parameters passed to your script is the $CmdLine array. See "Command Line Parameters" in the help file. Edited December 27, 2009 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Jjo Posted December 28, 2009 Author Posted December 28, 2009 Thx! Got it working. Projects: -Handy Musicplayer
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