Jump to content

Reading a parameter from another autoit


Crash
 Share

Recommended Posts

I have two scripts over here: one is main.au3 and the other is action.au3

The main.exe (compiled) is to be running in the background and the action.exe will be executed by main.exe whenever the user choose an action that requires admin rights (there will be a #RequireAdmin in action.exe)

Why: So that main.exe can be run by all users and when the user needed some "actions", they will have to enter admin passwords, Instead of needed to enter password when main.exe is run.

So there will be several "actions" written in action.exe and only one will be executed.

So, I think I will use parameters:

ShellExecute("action.exe", 1)

(with one as the parameter)

The action.exe will then GET the parameter, which in this case is 1, and run action 1.

If the parameter is 2, then it will run action 2 and so on.

So my question is HOW I CAN MAKE action.exe READ THE PARAMETER?

Or, is my idea possible to work? If not, why?

Please help me!! :)

Edited by Crash

JPGRARMouse Lock | My website | Thanks so much for your help! ❤️

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...