ReMoTe04 Posted June 15, 2014 Posted June 15, 2014 Hello! I want a script, what if runned by "-program" parameter, then give a message: "Opened" or if not deal the "-program" parameter, then give: "Can't open." Possible? [i want it, for my program.. a program will be run this, and i want that cant open this program with double clicks, just my program can open it, with "-program" parameter add] sorry for bad english :c
FireFox Posted June 15, 2014 Posted June 15, 2014 (edited) Hi, Take a look at the helpfile for the Running section. Br, FireFox. Edited June 15, 2014 by FireFox
ReMoTe04 Posted June 15, 2014 Author Posted June 15, 2014 Hi i saw it, but i dont know how to use it ._. if $CmdLine[1] = 1 then MsgBox(0, "asd", "1") Else MsgBox(0, "asd", "0") EndIf ?
FireFox Posted June 15, 2014 Posted June 15, 2014 Try running the examples, especially this one : #include <Array.au3> _ArrayDisplay($CmdLine) $CmdLine is an array containing the parameters, its index 0 is set to the numbers of parameters passed. Br, FireFox.
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