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
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
So dürfte es gehen
[autoit]While _isPressed(70)
$m = MousegetPos()
WinMove("Title","", $m[0], $m[1])
Wend
ICh würde noch Sleep(10) einbauen, damit die CPU nicht gleich auf 100 geht...
Jip sleep hab ich ma so als logisch vorrausgesetzt...
@ sweet lucia :
Willst wohl nen anderes maudisign machen ... sag mir ma wenn du fertig bist ... hab des auch schon probiert und bin kläglich gescheitert ... Grund: Das gui war immer unter des maus und somit konnte ich nichts anklicken
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
Func ende()
Exit
EndFunc