Jump to content

Recommended Posts

Posted

Hey,

id like to know how i make parameters for my program like this

"myprogram.exe" -title Test -msg Hey

Woud start somting like this

MsgBox (0, $title, $msg)

Great thnx, adored :D

Posted

Not the best, but does show the basic operation of handling Command Line Parameters

If $CMDLINE[0] = 4 Then
    If $CMDLINE[1] = '-title' Then
        $title = $CMDLINE[2]
        If $CMDLINE[3] = '-msg' Then
            $msg = $CMDLINE[4]
            MsgBox (0, $title, $msg)
        EndIf
    EndIf
EndIf

:D

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
  • Recently Browsing   0 members

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