Sign in to follow this  
Followers 0
zvd

.exe flags

5 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Great. Thanks alot. That got me started...

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
Sign in to follow this  
Followers 0