Maus curser geht nicht

  • Hallo Zusammen,

    Danke für euere Forum!

    ich habe folgende Autoit problem:

    ich will eine ziffer im eine fenster-box schreiben aber Autoit schreib meine ziffer an die letzte platz wo meine maus ist.

    Meine script:


    WinActivate("[CLASS:TVMU]", "")
    WinWaitActive ("[CLASS:TVMU]", "")
    Controlfocus("[ClassnameNN:TEdit16]", "", "")

    send("1000")


    info ich habe von Autoit v3 Window Info:

    >>>> Control <<<<
    Class: TEdit
    Instance: 16
    ClassnameNN: TEdit16
    Name:
    Advanced (Class): [CLASS:TEdit; INSTANCE:16]
    ID: 3408674 //Nicht immer gleich 
    Text:
    Position: 93, 301 //Immer gleich

    Size: 60, 24 //Nicht immer gleich

    ControlClick Coords: 10, 10
    Style: 0x540000C0 // Nicht immer gleich

    ExStyle: 0x00000200 // Nicht immer gleich

    Handle: 0x00340322


    Kann eine mir bitte helfen?


    Danke

  • Würde dir ja helfen, aber was auch immer das für eine Sprache in der du da schreibst, ich verstehe kein Wort davon. Ausserdem weiss ich bei besten Willen nicht was eine Fenster-Box sein soll ö.Ö


    ich kann dich verstehen.....ich bin keine deutsch und ich habe keine deutsche-kurs gemacht.. - aber ich versuche :)

    Actually, what I would like:

    I like to write a number in a window-box but what happends, but it doesnt, it goes to my last "mouse click" position and I dont know why


    Thank you

  • Hehe maybe but I have already asked my question there....but no answer so far...


    So I thought I could ask it here...

    Could maybe somebody help me?

    • Offizieller Beitrag

    Try command:

    [autoit]

    ControlCommand ( "title", "text", controlID, "command" [, "option"] )

    [/autoit]


    But you must identify the window, where the control is. Parameter "title", maybe a handle or the window title. Parameter "text" can be omitted, use empty string.

    [autoit]


    $title = ; The Window title/handle
    ControlCommand($title, '', "[CLASS:TEdit; INSTANCE:16]", "EditPaste", 'your_string_to_insert')

    [/autoit]


    NB: If you make cross posts, its a good kind of manner to post the link here too.