Jump to content

.exe flags


zvd
 Share

Recommended Posts

Hello, I would like to make a compiled .au3 executable (program.exe) that runs a gui/program on double-click, but also, when you type the path of the program.exe in the Start -> Run -> Open box and add flags such as /x or /? it calls other functions or help messages (without running program.exe).

Any ideas on how to do this?

Thanks!

Link to comment
Share on other sites

... also, when you type the path of the program.exe in the Start -> Run -> Open box and add flags such as /x or /? it calls other functions or help messages (without running program.exe).

Any ideas on how to do this?

Thanks!

Check out Command Line Parameters in the helpfile they will do just this

As for doubleClick detection, the only way i can think of is this:

#include <Misc.au3>

While 1
    If _IsPressed(01) Then
        While _IsPressed(01)
            Sleep(2)
        WEnd
        Sleep(100);You may have to adjust if you have a really fast/slow click
        If _IsPressed(01) Then
            MsgBox(0,"Double Click", "You Double Clicked!")
        EndIf
    EndIf
WEnd

Its kind of a workaround, I'm sure there is a better way, but that catches most of my double Clicks

Edited by Paulie
Link to comment
Share on other sites

Not really what I had in mind. Making the program.exe open on double-click is just the regular behavior of a compiled .au3 script. I want to add the additional "feature" of a /? switch/flag that pops up a message box or something.

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...