Hilfe

  • Hallo AutoIT Forum,

    Ich will so einen multistarter zusammen basteln... (nix mit spielen)

    Also das wenn ich auf den button klicke dieses programm was ich öffnen will das es sich öffnet ....

    Spoiler anzeigen

    #include <GUIConstants.au3>

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 625, 445, 193, 125)
    $Button1 = GUICtrlCreateButton("Teamviewer", 128, 48, 425, 345, 0)
    GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    EndSwitch
    WEnd

    das hab ich bis jetzt ich weiss das i-wie "$windowopen" oder so rein muss (ich will es mit dem pfad öffnen)

    Hoffe auf schnelle antwort ;)

    Einmal editiert, zuletzt von eiscool32 (8. August 2010 um 18:36)

  • Ein programm kannste ganz einfach mit Shellexecute und dem Programmpfad ausführen.

    Beispiel:

    [autoit]

    Shellexecute(@ProgramFilesDir & "\TeamViewer\Version5\TeamViewer.exe")

    [/autoit]
  • Hallo,

    Mit Run kannst du ein Programm ausführen

    [autoit]

    Run('C:\Programme\TeamViewer\Teamviewer.exe')

    [/autoit]

    Hier kannst du auch die Deutsche Hilfsdatei runterladen, die auch sehr hilfreich ist.

    Ps: Bitte das nächste Mal den AuotIt-Quellcode benutzen

    Code
    [autoit][/autoit]

    Lg, Fabian

  • Ja sorry wusste ich nicht :)

    Ich werde es sofort ausprobieren :D

    Danke für die schnelle antworten.

    Mfg eiscool

  • Danke es geht aber ich hab eine große tabelle gemacht und wenn ich das öffne öffnet er alles aufeinmal ... :(

    Hilfe hier mein script

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 360, 340, 576, 224)
    $Button1 = GUICtrlCreateButton("Teamviewer", 8, 8, 73, 49, 0)
    Run('C:\Program Files\TeamViewer\Version5\TeamViewer.exe')
    $Button2 = GUICtrlCreateButton("Mozilla", 96, 8, 73, 49, 0)
    Run('C:\Program Files\Mozilla Firefox\firefox.exe')
    $Button3 = GUICtrlCreateButton("Internet", 184, 8, 73, 49, 0)
    Run('C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vbexpress.exe')
    $Button4 = GUICtrlCreateButton("Google C..", 8, 64, 73, 49, 0)
    Run('C:\Program Files\Google\Chrome\Application\chrome.exe')
    $Button5 = GUICtrlCreateButton("Gimp", 96, 64, 73, 49, 0)
    Run('Gimp= C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe')
    $Button6 = GUICtrlCreateButton("Paint.NET", 184, 64, 73, 49, 0)
    Run('C:\Program Files\Paint.NET\PaintDotNet.exe')
    $Button7 = GUICtrlCreateButton("Paint", 8, 120, 73, 49, 0)
    Run('%SystemRoot%\system32\mspaint.exe')
    $Button8 = GUICtrlCreateButton("Rechner", 96, 120, 73, 49, 0)
    Run('%SystemRoot%\system32\calc.exe')
    $Button9 = GUICtrlCreateButton("MSN", 184, 120, 73, 49, 0)
    Run('C:\Program Files\Windows Live\Messenger\msnmsgr.exe')
    $Button10 = GUICtrlCreateButton("ICQ", 8, 176, 73, 49, 0)
    Run('C:\Program Files\ICQ7.2\ICQ.exe')
    $Button11 = GUICtrlCreateButton("Skype", 96, 176, 73, 49, 0)
    Run('C:\Program Files\Skype\')
    $Button12 = GUICtrlCreateButton("Visual Basic", 184, 176, 73, 49, 0)
    Run('C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vbexpress.exe')
    $Button13 = GUICtrlCreateButton("WinTV", 8, 232, 73, 49, 0)
    Run('C:\Program Files\WinTV\WinTV.exe')
    $Button14 = GUICtrlCreateButton("FileZilla", 96, 232, 73, 49, 0)
    Run('C:\Program Files\FileZilla FTP Client\filezilla.exe')
    $Button15 = GUICtrlCreateButton("SciTE", 184, 232, 73, 49, 0)
    Run('D:\AutoIt3\SciTE\SciTE.exe')
    $Button16 = GUICtrlCreateButton("Editor", 272, 8, 73, 49, 0)
    Run('%SystemRoot%\system32\notepad.exe')
    $Button17 = GUICtrlCreateButton("Teamspeak2", 272, 64, 73, 49, 0)
    Run('C:\Program Files\Teamspeak2_RC2\TeamSpeak.exe')
    $Button18 = GUICtrlCreateButton("Teamspeak3", 272, 120, 73, 49, 0)
    Run('C:\Program Files\TeamSpeak 3 Client\ts3client_win32.exe')
    $Button19 = GUICtrlCreateButton("Metin2", 272, 176, 73, 49, 0)
    Run('C:\Program Files\Metin2\metin2.exe')
    $Button20 = GUICtrlCreateButton("Nostale", 272, 232, 73, 49, 0)
    Run('C:\Nostale(DE)\Nostale.exe')
    $Label1 = GUICtrlCreateLabel("Made by eiscool32", 216, 312, 135, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]
  • machs so ;)

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 360, 340, 576, 224)
    $Button1 = GUICtrlCreateButton("Teamviewer", 8, 8, 73, 49, 0)
    $Button2 = GUICtrlCreateButton("Mozilla", 96, 8, 73, 49, 0)
    $Button3 = GUICtrlCreateButton("Internet", 184, 8, 73, 49, 0)
    $Button4 = GUICtrlCreateButton("Google C..", 8, 64, 73, 49, 0)
    $Button5 = GUICtrlCreateButton("Gimp", 96, 64, 73, 49, 0)
    $Button6 = GUICtrlCreateButton("Paint.NET", 184, 64, 73, 49, 0)
    $Button7 = GUICtrlCreateButton("Paint", 8, 120, 73, 49, 0)
    $Button8 = GUICtrlCreateButton("Rechner", 96, 120, 73, 49, 0)
    $Button9 = GUICtrlCreateButton("MSN", 184, 120, 73, 49, 0)
    $Button10 = GUICtrlCreateButton("ICQ", 8, 176, 73, 49, 0)
    $Button11 = GUICtrlCreateButton("Skype", 96, 176, 73, 49, 0)
    $Button12 = GUICtrlCreateButton("Visual Basic", 184, 176, 73, 49, 0)
    $Button13 = GUICtrlCreateButton("WinTV", 8, 232, 73, 49, 0)
    $Button14 = GUICtrlCreateButton("FileZilla", 96, 232, 73, 49, 0)
    $Button15 = GUICtrlCreateButton("SciTE", 184, 232, 73, 49, 0)
    $Button16 = GUICtrlCreateButton("Editor", 272, 8, 73, 49, 0)
    $Button17 = GUICtrlCreateButton("Teamspeak2", 272, 64, 73, 49, 0)
    $Button18 = GUICtrlCreateButton("Teamspeak3", 272, 120, 73, 49, 0)
    $Button19 = GUICtrlCreateButton("Metin2", 272, 176, 73, 49, 0)
    $Button20 = GUICtrlCreateButton("Nostale", 272, 232, 73, 49, 0)
    $Label1 = GUICtrlCreateLabel("Made by eiscool32", 216, 312, 135, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    Run('C:\Program Files\TeamViewer\Version5\TeamViewer.exe')
    Case $Button2
    Run('C:\Program Files\Mozilla Firefox\firefox.exe')
    Case $Button3
    Run('C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vbexpress.exe')
    Case $Button4
    Run('C:\Program Files\Google\Chrome\Application\chrome.exe')
    Case $Button5
    Run('Gimp= C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe')
    Case $Button6
    Run('C:\Program Files\Paint.NET\PaintDotNet.exe')
    Case $Button7
    Run('%SystemRoot%\system32\mspaint.exe')
    Case $Button8
    Run('%SystemRoot%\system32\calc.exe')
    Case $Button9
    Run('C:\Program Files\Windows Live\Messenger\msnmsgr.exe')
    Case $Button10
    Run('C:\Program Files\ICQ7.2\ICQ.exe')
    Case $Button11
    Run('C:\Program Files\Skype\')
    Case $Button12
    Run('C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vbexpress.exe')
    Case $Button13
    Run('C:\Program Files\WinTV\WinTV.exe')
    Case $Button14
    Run('C:\Program Files\FileZilla FTP Client\filezilla.exe')
    Case $Button15
    Run('D:\AutoIt3\SciTE\SciTE.exe')
    Case $Button16
    Run('%SystemRoot%\system32\notepad.exe')
    Case $Button17
    Run('C:\Program Files\Teamspeak2_RC2\TeamSpeak.exe')
    Case $Button18
    Run('C:\Program Files\TeamSpeak 3 Client\ts3client_win32.exe')
    Case $Button19
    Run('C:\Program Files\Metin2\metin2.exe')
    Case $Button20
    Run('C:\Nostale(DE)\Nostale.exe')
    EndSwitch
    WEnd

    [/autoit]