Jump to content
Sign in to follow this  
gigilihooie

Switches

Recommended Posts

gigilihooie

I have been looking around and I found This.

If $CMDLINE[0] And $CMDLINE[1] = '/?' Then
    MsgBox(0x40000, 'Help', 'Not a problem;)')
    Exit
EndIf

When I add multiple of thoes, it errors.

I have tryed.

$CMDLINE[0] And $CMDLINE[2]
$CMDLINE[1] And $CMDLINE[2]
$CMDLINE[2] And $CMDLINE[0]
$CMDLINE[2] And $CMDLINE[1]

Any ideas?

Edited by gigilihooie

Share this post


Link to post
Share on other sites
mmavipc

I have been looking around and I found This.

If $CMDLINE[0] And $CMDLINE[1] = '/?' Then
    MsgBox(0x40000, 'Help', 'Not a problem;)')
    Exit
EndIf

When I add multiple of thoes, it errors.

I have tryed.

$CMDLINE[0] And $CMDLINE[2]
$CMDLINE[1] And $CMDLINE[2]
$CMDLINE[2] And $CMDLINE[0]
$CMDLINE[2] And $CMDLINE[1]

Any ideas?

heres xsome example semi-psudo code

for $i = 1 to $cmdline[0]
    if $cmdline[$i] = "/switchere" then
        do switch stuff here
    elseif $cmdline[$i] = "/bla" then
        do bla stuff here
    endif
next
rest of the script here

[size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

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  

×