Speichern unter & Controlclick funktioniert einfach nicht

  • [autoit]

    ControlClick( "Speichern unter", "&Speichern",1)

    [/autoit]

    jetzt bekomm ich nichtmal mehr nen controlklick hin. Hat wer ne Idee warum der nicht will?

    fetten Dank schon im Voraus

    Einmal editiert, zuletzt von rew (20. April 2009 um 11:51)

  • Hi!

    Schau dir halt die Hilfe dazu an!!!
    ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )

    [autoit]


    ControlClick( "Speichern unter", "&Speichern", "Button2", "", 1) ; Auf den Butten ein Linksklick einmal

    [/autoit]

    If not :?: then ?( else :thumbup:

  • Oscar .. das habe ich auch schon versucht.. bringt alles nichts -.-
    am Text lag es nicht, den der Button "Abbrechen" ging so wunderbar.
    @ Concara .. So wie ich das gemacht habe hätte es doch funktionieren müssen, oder warum nicht?

    Aber mit deinem ging es!, warum auch immer..

  • Oscar .. das habe ich auch schon versucht.. bringt alles nichts -.-
    am Text lag es nicht, den der Button "Abbrechen" ging so wunderbar.
    @ Concara .. So wie ich das gemacht habe hätte es doch funktionieren müssen, oder warum nicht?

    Aber mit deinem ging es!, warum auch immer..

    Er hat anstatt die id, das hier genommen:

    Class: Button
    Instance: 2

    Gibt eben viele wege das anzusteuern, also immer ma durchprobieren.

    ID - The internal control ID. The Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of identifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID
    TEXT - The text on a control, for example "&Next" on a button
    CLASS - The internal control classname such as "Edit" or "Button"
    CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1"
    REGEXPCLASS - Control classname using a regular expression
    X \ Y \ W \ H - The position and size of a control. <<< wurde ich abraten, da es noch nicht richtig funktioniert.
    INSTANCE - The 1-based instance when all given properties match.