ControlSetText bei StatusBar

  • Hi,
    ich hab versucht die Statusbar eines Programes anzupassen. Normalerweisse geht das ja mit ControlSetText ( "title", "text", controlID, "new text" [, flag] ).
    Das würde auch funktionieren, wenn ich die ersten paar Worte in der Statusbar ändern wollte. Leider bringt mir das nix, weil die Statusbar in zwei "Bereiche" getrennt ist. Über den normalen Befehl erreiche ich aber nur den ersten. Im Window Info Tool wird der zweite Beriech unter Statusbar mit Property 2 angezeigt.
    Ich hab es folgendermassen probiert, wie geht es richtig?

    ControlSetText ("Program Name", "", "[CLASS:msctls_statusbar32; INSTANCE:1; VALUE:2]", "Mein Text" )

  • >>>> Window <<<<
    Title: Torque
    Class: #32770
    Position: 0, 0
    Size: 540, 598
    Style: 0x94CA00CC
    ExStyle: 0x00018101
    Handle: 0x000C01E2

    >>>> Control <<<<
    Class: msctls_statusbar32
    Instance: 1
    ClassnameNN: msctls_statusbar321
    Advanced (Class): [CLASS:msctls_statusbar32; INSTANCE:1]
    ID: 1100
    Text:
    Position: 0, 528
    Size: 534, 22
    ControlClick Coords: 178, 9
    Style: 0x50000100
    ExStyle: 0x00000000
    Handle: 0x0004056E

    >>>> Mouse <<<<
    Position: 181, 582
    Cursor ID: 0
    Color: 0xF0F0F0

    >>>> StatusBar <<<<
    1: Status:
    2: Connected to the login server.

    >>>> Visible Text <<<<
    Account Info:
    Server:
    Username:
    Password:
    Login
    Imagecode
    Confirm
    0
    Status Log
    <No Character>
    <No Character>
    <No Character>
    Select Character
    <No Character>
    Select
    Options
    View Charstats
    Alias:
    Save Alias
    Login:
    Login when
    slot(s) are free.
    Beep when sending imagecode
    Swap to Client
    Debug
    [13:42:49] Welcome to Torque 1.7
    [13:42:49] Created by bot90210 and Nick(backo)
    [13:42:52] Connected to the login server.

    Status:


    >>>> Hidden Text <<<<
    Plugins:
    Injector:
    Plugin Name:
    Load
    Unload
    This plugin feature enables a third party to add functions to the clientless. If a plugin does not work, contact the plugin's author; NOT US.
    About:
    Plugins will not have direct access to your login data packets, but this doesn't mean there's no risk. Always be sure that the plugin is made by a credible source before using it.
    If you're a plugin author and believe there is a bug with the system, feel free to contact us.
    Opcode:
    Encrypted
    Client -> Server
    Server -> Client
    Inject
    Server Stats:
    Enable
    Refresh every (s):
    Model
    Character Details
    Name Check
    Name
    Race
    Gear
    Weapons
    Create
    Log
    Send Message
    Type
    Message
    Send
    Playername
    Masterlist
    Add
    Remove
    Chinese Auto Mastery
    Fire
    Cold
    Lightning
    Force
    Heuskal
    Bicheon
    Pacheon
    Euro Auto Mastery
    Warrior
    Cleric
    Bard
    Rogue
    Warlock
    Wizard
    Manual Mastery
    Level
    Manual Stat Points
    Add

  • Woher hastn du das VALUE:2 ?

    Also das ist jetzt der 2 Bereich der Statusbar? Verändert sich was wenn du vom 1 Bereich der Statusbar auf den 2 gehst bei >>>> Control <<<< ? Wenn ja schreib es mal auf.

  • Würde der Code dafür so stimmen? Hab da meine Zweifel XDx aber fals ja: dann tuts nicht...

    [autoit]


    #Include <GuiStatusBar.au3>

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

    $hTorque = WinGetHandle("Torque", "")
    $hControl = ControlGetHandle ($hTorque,"Connected to the login server.", "Connected to the login server.")
    _GUICtrlStatusBar_SetText ($hTorque, "Test", $hControl , 0)

    [/autoit]
  • Liest du dir auch dir Parameter in der Hilfe durch?

    [autoit]

    #Include <GuiStatusBar.au3>
    _GUICtrlStatusBar_SetText ($hControl , "TEXT_ZUM_SETZEN", $NUMMER_DES_BARABSCHNITTS)

    [/autoit]
  • [autoit]

    #Include <GuiStatusBar.au3>
    $handle=ControlGetHandle ( "Torque", "", "[CLASS:msctls_statusbar32; INSTANCE:1]" )
    _GUICtrlStatusBar_SetText ( $handle, "Funktioniert!", 1 ) ; es fängt bei 0 an, dewegen schon 1

    [/autoit]

    so müsste es denk ich klappen