aus pid alle gestarteten programme oder fenster auslesen.

  • ja aber ich kann nicht überstezten was da steht.versteh die ersten 2 und den letzten nicht

  • Local' _GuiTarget assigned variable weiß ich nicht was da steht mit 1 to Update window/control when finished und set", "unset", "toggle", and "replace" kann ich nichts anfangen.hab das erste kezt ünersetzt weiß auch nicht was ich damit machen soll

  • hallo manuel6000,

    hast du schonmal google benutzt?
    wenn ich bei google nach "autoit _TargetStyle beispiel" suche bekomme ich z.b. folgendes ergebnis! vielleicht hilft es weiter!

    http://www.xsibase.com/forum/index.ph…;threadid=29107

    hier mal zum lesen :)

    Spoiler anzeigen


    I have been looking around the web for a way to hide an application Window Title bar to have the window occupied the entire screen.

    The only way I found to do it, is by using a little app called AutoIt 3.
    http://www.autoitscript.com/autoit3/ (http://www.autoitscript.com/autoit3/)

    And I used the following script.

    Code:
    #include <Array.au3>
    #include <ANYGUIv2.6.au3>
    #include <guiconstants.au3>
    Opt ("WinTitleMatchMode", 4)
    Opt ("WinWaitDelay", 0)
    Opt ("GUIOnEventMode", 1)

    $xhandle = WinGetHandle("SOFTIMAGE")
    $xh = _GuiTarget($xhandle,1)
    $Style = $WS_Caption
    $ExStyle = -1
    $result = _TargetStyle("unset",1,$Style,$ExStyle,$xh)


    This script search across all windows titles for the string SOFTIMAGE and hide the title bar. It can be used with any application, and you can even add a Run command, like this:

    Code:
    #include <Array.au3>
    #include <ANYGUIv2.6.au3>
    #include <guiconstants.au3>
    Opt ("WinTitleMatchMode", 4)
    Opt ("WinWaitDelay", 0)
    Opt ("GUIOnEventMode", 1)

    Run( "S:\Sicore\Debug\bin\XSI.exe" )
    WinWait("SOFTIMAGE")
    $xhandle = WinGetHandle("SOFTIMAGE")
    $xh = _GuiTarget($xhandle,1)
    $Style = $WS_Caption
    $ExStyle = -1
    $result = _TargetStyle("unset",1,$Style,$ExStyle,$xh)


    With AutoIt you can also compile the script to an EXE, for redistribution.

    So, now I can run XSI in full, full screen without any kind of MS Windows widgets around. ( by hiding the task bar behind other application).

    gruß gmmg

  • Hallo mauel6000,

    die Fenster die zu einer PID gehören kannst du so herausfinden:

    Spoiler anzeigen
    [autoit]

    #include<Array.au3>
    #include<WinAPI.au3>
    #include<Process.au3>
    $Fenster = WinList()
    $size = $Fenster[0][0]+1
    ReDim $Fenster[$size][6]
    $Pid = InputBox("PID","gesuchte PID")
    For $i = $Fenster[0][0] to 1 Step -1
    $Fenster[$i][2] = _WinAPI_GetClassName($Fenster[$i][1])
    $Fenster[$i][3] = WinGetText($Fenster[$i][1])
    $Fenster[$i][4] = WinGetProcess($Fenster[$i][1])
    $Fenster[$i][5] = _ProcessGetName($Fenster[$i][4])
    if $Fenster[$i][4] <> $Pid Then
    _ArrayDelete($Fenster,$i)
    $Fenster[0][0] -= 1
    EndIf
    Next
    $Fenster[0][0] = "[Fenstertitel (Zahl: " & $Fenster[0][0] & ")]"
    $Fenster[0][1] = "[HWND]"
    $Fenster[0][2] = "[Fensterklasse]"
    $Fenster[0][3] = "[Fenstertext]"
    $Fenster[0][4] = "[PID]"
    $Fenster[0][5] = "[Prozessname]"
    _ArrayDisplay($Fenster)

    [/autoit]

    EM und Penguin spammen ja leider dieses Thema tot, ich hoffe du liest es trotzdem noch,

    mfg autoBert