umpalumpa Posted December 27, 2007 Share Posted December 27, 2007 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 More sharing options...
Kip Posted December 27, 2007 Share Posted December 27, 2007 $msg = Msgbox(4,"Autolauncher","Run programs?") If $msg = 6 Then Run("firefox") Run("aim") Run("foobar") Run("thunderbird") EndIf MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
James Posted December 27, 2007 Share Posted December 27, 2007 To add to that, you could do error checking, as in: check the program is running. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
star2 Posted December 27, 2007 Share Posted December 27, 2007 (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 December 27, 2007 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 More sharing options...
James Posted December 27, 2007 Share Posted December 27, 2007 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 Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
umpalumpa Posted December 28, 2007 Author Share Posted December 28, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now