billy85

Pass parameters to AutoIT program

5 posts in this topic

#1 ·  Posted

Hi,

 

Please help me. I couldn't find any solution for passing parameters from Php to AutoIT. Below are the codes;

PHP

$parameter = 5;
shell_exec("db.exe $parameter");

 

How to pass the $parameter to AutoIT program? Please help me. I tried to use command line, but it seems like I couldn't solve the problem

Share this post


Link to post
Share on other sites



#3 ·  Posted

@JLogan3o13 Hai, can you help me how to do it? bcs I am new to AutoIT. and I tried jst now using command line, I could not solve my issue. I think there is a problem with my code.

Share this post


Link to post
Share on other sites

#4 ·  Posted

@billy85 I'm not sure what I can provide beyond what the help file shows you. Here is another example - compile this script to whatever you want, then call the script with the /h parameter.

If $CmdLine[0] > 0 Then
        Switch $CmdLine[1]
            Case "/?"
                MsgBox(0, "", "Help")
            Case "/s"
                MsgBox(0, "", "_s")
            Case "/u"
                MsgBox(0, "", "_u")
            Case "/x"
                MsgBox(0, "", "_x")
        EndSwitch
    Else
        MsgBox(0, "", "No Parameters passed")
    EndIf

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted

@JLogan3o13 Thank you. I have managed to solve my problem.

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