Sign in to follow this  
Followers 0
umpalumpa

Need Help Creating An Auto Run Program

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



$msg = Msgbox(4,"Autolauncher","Run programs?")

If $msg = 6 Then

Run("firefox")

Run("aim")

Run("foobar")

Run("thunderbird")

EndIf

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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]

Share this post


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

Share this post


Link to post
Share on other sites

Thanks for everyones suggestions. I really needed the help. I'm sorry it sounds like I'm asking for someone to write the code for me, thats not my intent.

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