frage nach befehl

  • hiho,
    kann mir einer sagen wie der befehl heißt mit dem ein script "unsichtbar" ausgeführt wird? (also net in der leiste angezeigt wird...)

    dann wird ich noch gern wissen ob es möglich ist beim start eines kompilierten scripts den title des fensters manuell einzugeben mit dem das programm abreiten soll.

    danke schonmal.

  • #NoTrayIcon
    --------------------------------------------------------------------------------

    Indicates that the AutoIt tray icon will not be shown when the script starts.


    #NoTrayIcon


    Parameters

    None.


    Remarks

    It is possible to use Opt("TrayIconHide", 1) to remove the AutoIt tray icon but it will still be visible for a second when the script starts. Placing the #NoTrayIcon directive at the top of your script will stop the icon from being shown at startup.

    You may still turn the icon back on later in the script using Opt("TrayIconHide", 0)


    Related

    TrayIconHide (Option)

    Example


    #NoTrayIcon
    MsgBox(4096,"Click OK","Show the tray icon for 5 seconds...")
    Opt("TrayIconHide", 0) ;un-hide the icon
    Sleep(5000)


    (Quelle: Auoit Help File)


    .

    Zu 2:

    Sollte gehen, ja :)

    Probiers so:

    mach einen input , der nach dem Namen des Scripts fragt..

    zb

    $titel = InputBox("Fenstertitel", "Fenstertitel")

    dann musst du wissen wie dein Script "heisst", wenn du noch KEINEN namen eingegeben hast. zb "Hallo" ... also das, was links oben angezeigt wird!


    Dann einfach:

    (machs nicht gleich am anfang, sonst siehst du vll nicht wie das script heißt, oder machs mim Info TOOL...

    WinSetTitle ( "Hallo", "", $titel )


    Grüße

    Einmal editiert, zuletzt von huggy (7. November 2006 um 08:00)

    • Offizieller Beitrag

    HI,

    oder probier mal:

    [autoit]

    #include <GUIConstants.au3>

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

    GUICreate("My GUI")
    $start = GUICtrlCreateButton("Start", 10, 20, 100, 30); will create a dialog box that when displayed is centered
    GUISetState (@SW_SHOW) ; will display an empty dialog box

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

    While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    If $msg = $start Then
    WinSetTitle(WinGetTitle(""), "", InputBox("Set Title", "Welchen Titel soll das Fenster haben?")) ; das WinGetTitle("") kann man auch durch "" ersetzen :) dann funktioniert es aber nicht so gut wie mit :)
    EndIf
    Wend

    [/autoit]


    So long,

    Mega