Jump to content

Need Help Creating An Auto Run Program


 Share

Recommended Posts

Hello, im looking for some help with a project of mine. What i want to do is have a program that once ran will automatically run several different programs at one time. For example i run my program and dialog box opens with a button named "Auto Launch"when i click the button it launches firefox, AIM, Foobar, and Thunderbird. Once it has completed its tasks it closes. Can anyone help me find some code to use with my project, or maybe steer me in the right direction.

Link to comment
Share on other sites

Looks like you want us to do the job for you ( :) I did that alot !!)

if u wanna learn how to script u should read the help file for the info u need

and search the forum for the members UDFs ans Examples

but anyway here's an example of what u want

$ask = MsgBox (4, "Program Luncher" , "Do You Want To Lunch The Following Programs?" & @CRLF & "Program - 1"& @CRLF & "Program - 2"& @CRLF & "Program - ...")
If $ask = 6 Then
    ;=== put your programs EXEs here  ===
    Run ("Program - 1")
    Run ("Program - 2")
    Run ("Program - ...")
ElseIf $ask = 7 Then
    Exit
EndIf
Edited by star2

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
Share on other sites

And to add to that (To show you what I meant):

$ask = MsgBox(4, "Program Luncher", "Do You Want To Launch The Following Programs?" & _ 
    @CRLF & "Program - 1" & @CRLF & "Program - 2" & @CRLF & "Program - ...")
If $ask = 6 Then
    $cmd = Run("cmd.exe")
    $paint = Run("mspaint.exe")
    $notepad = Run("notepad.exe")
    Sleep(5000) ; Wait 5 seconds before doing the next thing
    If Not ProcessExists($cmd) Or Not ProcessExists($paint) Or Not ProcessExists($notepad) Then
        MsgBox(48, "Program Launcher", "1 or more program could not be launched!")
    Else
        ; Do nothing here because programs were launched, maybe a message box?
    EndIf
ElseIf $ask = 7 Then
    Exit
EndIf
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...