|
ok thx mein code sieht so aus funktioniert aber net wirklich:
#include <GuiConstantsEx.au3>
#include <GuiReBar.au3>
#include <GuiToolBar.au3>
#include <GuiComboBox.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <Misc.au3>
HotKeySet("{ESC}","ex")
HotKeySet("{F1}","st")
HotKeySet("{F2}","st2")
$Gui = GUICreate ("hi",150,150,150,150,BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU,$WS_SIZEBOX))
$button = GUICtrlCreateButton("TEST",50,50,50,50)
GUISetState (@SW_SHOW)
$stand = 1
while 1
If $stand = 1 Then
$pos = MouseGetPos()
WinMove ("hi","",$pos[0],$pos[1])
EndIf
If $stand = 2 Then
$pos = MouseGetPos()
$go = GUICtrlSetPos($button,$pos[0],$pos[1])
$coords = WinGetPos($Gui)
_MouseTrap($coords[0], $coords[1], $coords[0] + $coords[2], $coords[1] + $coords[3])
EndIf
WEnd
Func ex()
Exit
EndFunc
Func st()
$stand = 2
EndFunc
Func st2()
$stand = 3
EndFunc
kannst du den nachher mal anguken und verbessern pls
|