Folge mir du GUI :D

  • Hallo^^,

    ich möchte gerne das meine GUI meiner maus folgt solange ich F1 gedrückt halte ;'D im moment hab ich halt eben immer nur das er die posi auf die maus posi setzt was aber nicht klappt =3

    daher bitte ich hier um hilfe

    Einmal editiert, zuletzt von Sweet Lucia (10. April 2009 um 16:27)

  • So dürfte es gehen ;)

    [autoit]

    While _isPressed(70)
    $m = MousegetPos()
    WinMove("Title","", $m[0], $m[1])
    Wend

    [/autoit]
    • Offizieller Beitrag

    Ich hab mal meinen ColorPicker etwas umgebaut:

    [autoit]

    #include <WindowsConstants.au3>
    #include <Misc.au3>
    HotKeySet('!e', 'ende')

    Local $pos
    $Cursor = GUICreate('', 48, 48, -1, -1, $WS_POPUP, $WS_EX_TOPMOST)
    WinSetTrans($Cursor, '', 100)
    GUISetCursor(3, 1, $Cursor)
    GUISetState()

    While 1
    While _IsPressed('70')
    $pos = MouseGetPos()
    WinMove($Cursor, '', $pos[0]-24, $pos[1]-24)
    Sleep(10)
    WEnd
    Sleep(10)
    WEnd

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

    Func ende()
    Exit
    EndFunc

    [/autoit]